-
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.
-
Disable image optimisation on Pagely
PressThumb can be disabled by renaming the pagely-pressthumb.php plugin in the mu-plugins directory to pagely-pressthumb.php.off. Pressthumb optimization can be re-enabled by renaming the file back to its original name.