Quantcast
Channel: Snippets Archive - Fewer Than Three
Browsing latest articles
Browse All 12 View Live

Force All set_url_scheme URLs to ‘https’

This was another fix that we needed to pursue when working with a site using a reverse proxy with WordPress. The problem occurs since the originating site for the reverse proxy cannot be secured with...

View Article



Image may be NSFW.
Clik here to view.

Filter Genesis Post Info for Post Types Without an Author

Problem Genesis Post Info is the information about the post (post date, author, comments) that typically displays just below the title on your posts. If you have a Post Type that doesn’t support an...

View Article

WPENGINE’s Common Plugin Error Code Showing up on the Front End

Just posting a quick fix in case others bump into this or we need to fix a site again 🙂 We had a strange case of the below code showing up on a front end page of a WPENGINE site…...

View Article

WordPress Conditional: “has_body_class()”

Was recently working on a new post layout for a site that we’re wanting to do some A/B testing for before shipping out the feature for the entire backlog of posts. Once we implement, there may be a few...

View Article

Image may be NSFW.
Clik here to view.

“Switch To User” Link on WooCommerce Order Details

The User Switching plugin is a great way to quickly see how Users at different access levels will interact with your site. It’s a necessary plugin for most development environments. (it also fits into...

View Article


Updating A WordPress User Password – MySQL

When setting up new versions of live sites on your local machine, it’s easiest to migrate the entire database and dump it into your new install. We love using WP Migrate DB for this task. For local...

View Article

Making a Redirect Work with Capitalization on WPENGINE

A client recently wanted to have a vanity URL redirect created. I had created one like https://limecuda.com/awesome-wordpress-hosting/ However, they wanted to have a URL like...

View Article

Using WP-CLI to search-replace and Remove .html from End of URLs

Scenario: we were migrating a WordPress site from one domain to another. The blog posts all ended in .html which we wanted to remove for cleanliness and SEO. We created this code in WPENGINE to handle...

View Article


Image may be NSFW.
Clik here to view.

Regex Redirect Rule to Remove Blog from Post URL but Keep Pagination

This is a common site migration redirection issue. We want to change the WordPress blog posts from having .com/blog/post-name-here/ in the URL to the single post URL being just .com/post-name-here/ But...

View Article


Using theme.json settings in your custom Gutenberg blocks

Utilizing the theme.json file for customizing your WordPress site is a powerful way to enhance the user experience for those managing content within Gutenberg. We can access these settings within our...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images