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:

Make your Websites Faster with MaxCDN! Today we put together quick overview about MaxCDN service, we used also on this site. If you run websites, like us do, you will find that this service...
Draw your graphs in Illustrator This manual is written for Adobe Illustrator CS2, mostly no problem to use the older version. The result will look something like this: Select...
10 Shopify Templates to Increase Online-Sales A website can be called a necessity for all entrepreneurs who want to promote their business on the web. When it comes to choosing the best platform f...
Million Dollar Enterprise CMS vs. WordPress Enterprise CMS are often multi-million dollar initiatives mainly because they offer undeniable benefits at pretty huge prices. CMS sites enhance autom...
Some Tips which will help skyrocket the sales of y... We are pretty sure that all of you must have come across some or the other eCommerce websites while surfing the net or used them to buy products and s...

Newsletter

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

You have Successfully Subscribed!

Pin It on Pinterest