WordPress › Support » Search results duplicated if in more than one category (2.1)Question: With WP 2.1 a search will now repeat a post found through a search as many times as it has categories.

So, for example, if I have a post tagged under ‘technology’, ‘science’ and ‘sport’, any search where that is a result will display the post three times. This didn’t happen with previous versions. Any idea about a hack to only ever display a search result once? Thanks.

Answer: I’ve no problem with Event Calendar working with 2.1 and made the following change in eventcalendar3.php to get rid of the problem in function ‘ec3_filter_posts_where‘ add the following to the first if statement:

$wp_query->is_search 

David

Graphic and website designer, currently, I attend to the maintenance of about thirty sites for existing clients as well as creating websites for the new ones. In my free time, I get into the secrets of the world of Linux, SSH, WP-CLI and I’m preparing this blog.

More:

10 Amazing Themes for your WP based e-Store from 2... A website is the best tool to connect with potential customers. It is a very powerful and useful promotional tool that can take your business to great...
How to Create Content Your Website Visitors Can... In order to drive traffic to your website, you first have to optimize the page so that it will rank higher in related search engine results. After all...
15+ Free WordPress Plugins to enhance your sites Check out our newest roundup of 15+ Free WordPress Plugins which can help you enhance your sites or user experience. There are 51.934 plugins in WordP...
WP eStore – Complete Solution to Sell Digital Prod... Sell Digital Products is now easy with next excellent plugin from Tips and Tricks HQ we would like to introduce - WP eStore - WordPress shopping cart...
72 Facts That Will Make You An SEO Genius In 2018 If you speak to different site owners, they will all have something different to tell you about what they think is the best SEO method. This is one of...

Newsletter

Join our mailing list to receive the latest news and updates.

You have Successfully Subscribed!

Pin It on Pinterest