Support

Home Forums Event Espresso Premium Venues page

Venues page

Posted: October 8, 2014 at 12:52 pm

Viewing 2 reply threads


Tammy Perlman

October 8, 2014 at 12:52 pm

EE4 new install. Our web site has a pre-existing page worlds2016.com/venues. The EE Archive venues page now loads in its’ place. How can I change that so the EE Archive venues page loads on a different page/url?


Tammy Perlman

October 8, 2014 at 12:59 pm

Since the site is live I changed the /venues page to /venue for now. We really need it to be /venues.


Tony

  • Support Staff

October 8, 2014 at 1:15 pm

Hi Tammy,

You can alter the venue in the same way you can alter the events here:

https://eventespresso.com/wiki/change-events-cpt-slug/

However you’ll need to target espresso_venues rather than espresso_events, so something like this:

add_filter( 'FHEE__EE_Register_CPTs__register_CPT__rewrite', 'my_custom_venue_slug', 10, 2 );
    function my_custom_venue_slug( $slug, $post_type ) {
    	if ( $post_type == 'espresso_venues' ) {
    		$custom_slug = array( 'slug' => 'locations' );
    		return $custom_slug;
    	}
    	return $slug;
    }

After you add that code you will need to refresh the permalinks and /venues/ will change to /locations/ (you can change that to anything else that you prefer)

Viewing 2 reply threads

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