-
Solve infinite redirect issue with SpinupWP and Cloudflare
Make sure that ‘Full’ is selected under SSL/TLS settings for the domain in Cloudflare. All other Cloudflare settings, as of January 2024 at least, should be left as default:
-
Re-centre FacetWP map after interaction
Useful if the FacetWP map is initially hidden on page load and is only shown after some interaction, meaning that the map markers map be shown but too zoomed out otherwise.
-
Allow two character words in SearchWP results
Useful if there’s a commonly used abbreviation on the website e.g. UT, that wouldn’t otherwise be returned in SearchWP results (default word length is three).
-
Only output HTML for a WordPress menu location, if a menu is set for that location
Otherwise it falls back to echoing another menu (the first?) instead of nothing.
-
FacetWP ‘Load More’ button still showing even when no more posts to show
Make sure you are not overriding the .facetwp-hidden CSS class.
-
Change post type for WordPress posts with WP-CLI
In this example, I’m modifying all the posts with a legacy custom post type that I want to get rid of to use the Yoast SEO: Local custom post type for locations instead.