Support

Home Forums Event Espresso Premium Trainers & Venues appearing as blogs

Trainers & Venues appearing as blogs

Posted: January 9, 2019 at 7:30 am

Viewing 4 reply threads


Porter

January 9, 2019 at 7:30 am

This topic relates to the following
https://eventespresso.com/topic/event-registration-page-on-jupiter-theme-appearing-as-a-blog/

I’ve noticed that both the people and venue pages are also displayed as blogs. Do you know how I can change this to a page? We’re using Jupiter theme.


Josh

  • Support Staff

January 9, 2019 at 8:01 am

Hi,

In this case, you’ll replace the code provided in the other topic, with this:

add_filter('single_template', 'jf_ee_custom_post_types_template');
function jf_ee_custom_post_types_template($single_template) {
  global $post;
  $post_types = array(
    'espresso_events',
    'espresso_venues',
    'espresso_people'
  );
  if (in_array($post->post_type, $post_types)) {
    $single_template = get_template_directory() . '/page.php';
  }
  return $single_template;
}


Porter

January 10, 2019 at 2:21 pm

This reply has been marked as private.


Josh

  • Support Staff

January 10, 2019 at 3:01 pm

I answered this in your other topic:

https://eventespresso.com/topic/event-registration-page-on-jupiter-theme-appearing-as-a-blog/#post-282849

If you can add a few more conditional statements like the one in that reply, one for espresso_venues, and one for espresso_people, it will remove the pagination there too.


Porter

January 11, 2019 at 5:03 am

This reply has been marked as private.
Viewing 4 reply threads

The support post ‘Trainers & Venues appearing as blogs’ 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