What category are Events and Venues? How to exclude them from Search Results?
Is there a way to refer to events and calendar pages? I’m using the plugin on http://offmetro.com/sf/ and would like to exclude the Events and Venues pages from my search results page. Is there a way to refer to them as a category? I can exclude certain categories from the search results, and it would be helpful if they had a category ID that I could refer to, and that I could exclude that category.
I actually can tell with categories, you can find it by going to the backend of your site, clicking into a given category name from Event Categories, and viewing the number that appears in the URL bar. That what you’re looking for?
Let me find out for venues. I see those create a page, not a category, so not sure how that’d be handled.
Hey again Vince. I talked this over with my dev today. Modifying the code to do this wouldn’t be very practical, from the looks of things. You may want to try a plugin such as Relevanssi that let’s you customize your search much more. For example, you can exclude categories, tags and posts and pages from your search. Here’s the plugin: http://wordpress.org/extend/plugins/relevanssi/ – I’ve been told by our dev that he used it in a number of his sites and it’s done exactly what you’re looking for here.
Hi Rob – thanks for the responses and for looking into this! I was actually already using Relevanssi, and was hoping to use it to exclude the category for Events and Venues in my search results. However, the Event and Venue categories don’t show up in the Posts/Categories list. So there is no way to find the category ID. Perhaps there is a way to find out the category id in the database – i’ll look into that next (or let me know if you know this offhand).