This is a page that is a quick reference point for all of the content on Wpcanyon. You can quickly find whatever you want on this one page.
Admin & Blocks
All posts in Admin & Blocks (10)
- Schedule database cleanup tasks with WP‑CLI
- Add custom dashboard widgets (useful shortcuts)
- Change WordPress admin login URL (pros/cons & safe method)
- Disable comments sitewide (and close on old posts)
- Redirect author archives to homepage (or page)
- Add a custom user role with specific capabilities
- Allow SVG uploads safely (sanitize + preview)
- Create and manage reusable blocks (patterns)
- Disable Gutenberg for specific post types
- Duplicate a page or post without a plugin
Automation
All posts in Automation (1)
Automation & Plugins
All posts in Automation & Plugins (5)
Comparisons
Developer Snippets
All posts in Developer Snippets (9)
- REST API: authenticate with Application Passwords
- Enqueue scripts/styles the right way (with dependencies)
- Custom login logo + styles (theme‑agnostic)
- Add classes to previous/next post links
- Shortcode: list posts by tag with excerpt
- Change taxonomy rewrite slug (without breaking links)
- Register a custom post type with REST & archive
- WP_Query: exclude a category (and paginated archives)
- Add a CSS class to the current menu item (wp_nav_menu)
Fixes & Errors
All posts in Fixes & Errors (15)
- Fix WordPress too many redirects (ERR_TOO_MANY_REDIRECTS)
- Fix “Maximum execution time of 30 seconds exceeded” in WordPress
- Increase upload_max_filesize (Uploaded file exceeds the upload_max_filesize directive)
- Fix WordPress posts returning 404 (pages OK)
- Fix “Sorry, this file type is not permitted for security reasons”
- Fix “Destination folder already exists” when installing plugins/themes
- Fix WordPress login loop (keeps redirecting to login)
- Increase WordPress PHP memory limit (Allowed memory size exhausted)
- Fix “Sorry, you are not allowed to access this page”
- Fix “Briefly unavailable for scheduled maintenance” in WordPress
- 413 Request Entity Too Large on media upload (Nginx/Apache)
- cURL error 60: SSL certificate problem in WordPress
- Fix ‘The link you followed has expired’ (WordPress uploads)
- WordPress stuck in maintenance mode: how to fix safely
- HTTP image upload errors: HTTP error / 500 / 503 in Media Library
Speed & Security
All posts in Speed & Security (15)
- Serve static 410 for bots hitting wp‑login & xmlrpc
- Disable emojis and embeds to cut requests
- Preload fonts and critical CSS in WordPress
- Cloudflare cache rules for WordPress (no admin caching)
- BunnyCDN setup for WordPress (origin shield & query‑string cache)
- Reduce TTFB on budget hosting (OPcache + object cache)
- Best HTTP security headers for WordPress (with examples)
- Block bad bots with .htaccess (copy/paste rules)
- Disable XML‑RPC in WordPress (and what breaks if you do)
- Serve WebP in WordPress (with safe JPEG/PNG fallbacks)
- Reduce TTFB on cheap hosting (object cache & OPcache)
- Block bad bots in .htaccess (copy/paste)
- Serve WebP in WordPress without breaking Safari
- BunnyCDN + Cloudflare: should you double‑up and how to do it
- WP Rocket best settings on LiteSpeed servers (or use LSCache?)
Uncategorized
All posts in Uncategorized (0)
- No posts found.
WooCommerce How‑tos
All posts in WooCommerce How‑tos (15)
- WooCommerce: Set role‑based pricing (simple example)
- WooCommerce: Exclude a category from the shop page
- WooCommerce: Force login to purchase (hide price for guests)
- WooCommerce: Add a handling fee or surcharge
- WooCommerce: Disable shipping for virtual/downloadable products
- WooCommerce: Redirect after add to cart (to cart or checkout)
- WooCommerce: Change “Add to cart” text per product type
- WooCommerce: Hide out‑of‑stock products from the catalog
- WooCommerce: Set a minimum order amount with a message
- WooCommerce: Remove checkout fields safely (no plugin)
- WooCommerce: Add ‘Click & Collect’ without a plugin
- WooCommerce: Disable coupons on sale items only
- WooCommerce Stripe: pending payments stuck — causes & fixes
- WooCommerce: Create tiered shipping by product category
- WooCommerce: Force NZD & hide other currencies
WordPress Snippets
All posts in WordPress Snippets (9)
- Adding Classes to body_class() in WordPress
- Adding ID Field To The Media Library Listing In WordPress Admin
- Adding Classes To previous_posts_link() And next_posts_link() In WordPress
- Get Separate Count For Comments, Trackbacks, And Pingbacks In WordPress
- Adding A Custom Field Automatically On Post/Page Publish
- Showing Random Posts In WordPress
- Showing Amount Of Comments A Comment Author Made
- Adding Classes to the Current Page Item in wp_nav_menu()
- Increasing The Categories Selection Height Dynamically In WordPress Admin