• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
SnippetPress

SnippetPress

The Home of WordPress Snippets

Vultr Web Hosting
  • Cheat Sheets
  • Reviews
  • Snippets
  • Tutorials

Snippets

Change The WordPress Page Title Separator Without A Plugin

July 17, 2020 by SnippetPress Leave a Comment

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

How to Modify Text in a WordPress Plugin or Theme Without Another Plugin

June 17, 2020 by SnippetPress Leave a Comment

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

June 16, 2020 by SnippetPress Leave a Comment

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

June 15, 2020 by SnippetPress Leave a Comment

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

May 25, 2020 by SnippetPress Leave a Comment

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

Next Page »

Primary Sidebar

E-mail Newsletter

More to See

WooCommerce – Prevent Product Being Added To Cart If A Specific Product Is Already In Cart

July 15, 2020 By SnippetPress

WooCommerce – Display an “Add $X To Get Free Shipping” Notice

July 13, 2020 By SnippetPress

Footer

Recent

  • Change The WordPress Page Title Separator Without A Plugin
  • WooCommerce – Prevent Product Being Added To Cart If A Specific Product Is Already In Cart
  • WooCommerce – Display an “Add $X To Get Free Shipping” Notice
  • WooCommerce – Integrate Google Merchant Center Customer Reviews
  • WooCommerce – Disable Out of Stock Variations

Search

Copyright © 2023 ·SnippetPress