Support

Home Forums Event Espresso Premium Disable location specific pages – EE4

Disable location specific pages – EE4

Posted: August 27, 2014 at 3:27 am


Jackie Blaker

August 27, 2014 at 3:27 am

Hi Guys,

How do we disable location specific pages in EE4? can’t for the life of me find the documentation for it.

Thanks


Dean

August 27, 2014 at 3:48 am

Hi,

Which location specific pages are you referring to? Can you provide an example?


Jackie Blaker

August 28, 2014 at 1:57 am

Hi,

Sorry if I was unclear, I mean the entire “location page” functionality – so at the moment, on an event, you can click the location name and it takes you through to a page that tells you everything about that location.

I don’t want those pages to exist – we won’t have enough info about a location to make it “worth” having these pages.

As an example – http://acs-se.dev.maxx-design.co.uk/venues/birmingham-nec/

And then, as these individual pages won’t exist, the “feed page” for venues http://acs-se.dev.maxx-design.co.uk/venues/ should 404

Does that make sense?


Jackie Blaker

August 28, 2014 at 4:00 am

Sorry, by locations i mean Venues.


Dean

August 28, 2014 at 4:29 am

Hi Jackie,

Thanks for the clarification!

OK, for the actual link you will need to use a small function, ideally via a custom plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/)

function espresso_venue_name( $VNU_ID = FALSE, $link_to = ''  ) {
     echo EEH_Venue_View::venue_name( $link_to = '', $VNU_ID );
}	

That function will leave the Venue name intact but remove the URL.

The feed issue was a really interesting question and really hard. I couldn’t find an easy way to simply stop the venue feed from existing.

That being said, the venues are in their own feed, so unless someone specifically requests it, they should not show up in an RSS feed reader.

The support post ‘Disable location specific pages – EE4’ 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