Support

Home Forums Event Espresso Premium Trainers & Venues appearing as blogs

Trainers & Venues appearing as blogs

Posted: January 9, 2019 at 7:30 am


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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Porter 1 week, 1 day ago ago

Topic Tags

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!