Support

Home Forums Event Espresso Premium SeoPress

SeoPress

Posted: November 20, 2019 at 5:48 am

Viewing 4 reply threads


hepar

November 20, 2019 at 5:48 am

Hello,

I would like to set past events for Google to “noindex”. Unfortunately SeoPress does not show any possibility to define SEO settings in the events created with EventEspresso. I can only set the archive of the taxonomy type “event categories [espresso_event_categories]” to noindex. How do events come to the archive? Automatically? Or is there another way to use SeoPress with EventEspresso?

Many thanks for your help
helga


Josh

  • Support Staff

November 20, 2019 at 8:39 am

Hi Helga,

There is a way to have the noindex tag applied automatically at the moment the event end. It’s a tiny bit of code you can add to your site:

https://gist.github.com/joshfeck/70979dc12f93ab25dd668ed4500be477

You can add the above to a functions plugin by following this guide.


hepar

November 21, 2019 at 3:18 am

Hi Josh,

thank you very much for your quick reply. I hope I can do it. 🙂

Best regards
Helga


hepar

November 25, 2019 at 3:28 am

This reply has been marked as private.


Tony

  • Support Staff

November 25, 2019 at 5:30 am

I got this answer from SeoPress. It’s about setting individual posts on NoIndex.

“I have bad news ?
EventEspresso doesn’t not use a WordPress custom post type to save its events.

This is incorrect, Event Espresso does use a custom post type for its events.

We do not use the default WordPress editor routes, but we do use custom post types for our events with additional info stored in custom tables, however, EE events have show_ui set to false so SEOPress doesn’t load them (there’s a filter in SEOPress to work around this).

It means currently it will not work out of the box with SEOPress.
It will required custom development to handle this.
Maybe you could try to contact their support, they may have a quick fix…

I’ve had a look over SEOPress and the fix for this needs to be done within SEOPress rather than EE.

There’s a filter (mentioned above) within SEOPress which can be used to tell it to load on Event Espresso post types however the plugin also checks for the standard WP editor route ($pagenow == 'post-new.php' || $pagenow == 'post.php') and as EE doesn’t use those, it doesn’t load.

We actually filter $pagenow on the EE editor but on the current_screen hook but the above happens before that is run. If a filter can be added to SEOPress to allow others to override that check we can give you a snippet that will allow SEOPress to load on EE events.

Viewing 4 reply threads

The support post ‘SeoPress’ 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