Support

Home Forums Event Espresso Premium Excluding Events from Search Engine

Excluding Events from Search Engine

Posted: September 1, 2016 at 9:40 am

Viewing 1 reply thread


Groupe CFC

September 1, 2016 at 9:40 am

Hello Folks!
I’m not sure if my following problem is a Event espresso or WordPress.
It’s related to the Search box on my web site.
Let’s say that I have an Event in 10 different cities. When we type the event in the Search Field, we have the same description that pop 10 times… I would like just to see the event description instead. Is there a trick to exclude some event ? Thanks !


Lorenzo Orlando Caum

  • Support Staff

September 1, 2016 at 5:17 pm

Hello,

The search feature in WordPress shows results for the content on your site so that includes pages, regular posts, and any custom post types that may be on your WP site.

Events in Event Espresso are custom post types so they are being included in those search results.

I did some research and a code snippet like the one shared in this blog post can be used to show only blog posts and pages in your search results pages:

http://www.wpbeginner.com/wp-tutorials/how-to-limit-search-results-for-specific-post-types-in-wordpress/

Note that will remove any custom post types from the search results.


Lorenzo

Viewing 1 reply thread

The support post ‘Excluding Events from Search Engine’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso