The title separator in a webpage is the symbol or punctuation that separates different parts of the title that is shown in Google search results and in the top of the browser. For example: There are lots of plugins out there that let you change the title separator in WordPress, but it's actually really easy to do without a plugin. All you need is this really simple code … [Read more...] about Change The WordPress Page Title Separator Without A Plugin
Snippets
How to Modify Text in a WordPress Plugin or Theme Without Another Plugin
We've all been there, you've found the perfect theme or plugin for your site, but the wording on that button just isn't right. Or maybe you need to change the word Cart to Basket in WooCommerce. Whatever it is, you've probably come across plugins that will change the text for you, but what if you want to do it without having to install another plugin? One thing's for certain … [Read more...] about How to Modify Text in a WordPress Plugin or Theme Without Another Plugin
Limit the WordPress Search to Specific Post Types
By default, WordPress will return all post types in its search results. If you need to limit the search results to specific post types, you can use the follwoing snippet: add_filter( 'pre_get_posts', 'snippetpress_search_post_type' ); function snippetpress_search_post_type( $query ) { $post_types = array( 'post', 'page', ); if ($query->is_search && … [Read more...] about Limit the WordPress Search to Specific Post Types
How to Exclude Specific Tags and Categories from WordPress Search Results
Sometimes there may be certain categories or tags that you don't want to appear in your WordPress search results. You could use a plugin to exclude posts that are in these categories or tags, or you could just add a little snippet to your site. Excluding Categories To exclude posts that are in a specific category from your WordPress search, simply use the following … [Read more...] about How to Exclude Specific Tags and Categories from WordPress Search Results
Display the WordPress Post/Page Featured Image in the Admin Table
In this post we're going to have a look at how to display post and page featured images in the WordPress post admin table. As standard, WordPress doesn't show the featured image in the backend, but with a little bit of code, we can fix that. Just add the following snippet to the functions.php file of your child theme: add_filter( 'manage_posts_columns', … [Read more...] about Display the WordPress Post/Page Featured Image in the Admin Table