[Plugin: Events Manager] Sidebar content overridden
-
I’m helping a client set up a site that uses Event Manager. We set up the default page template to show the content of an info page in the sidebar. In sidebar.php, we’re using code that looks something like this…
<?php
$vp_info_id = 00; // replace 00 with actual info page id
$vp_info_post = get_post($vp_info_id);
$vp_content = $vp_info_post->post_content;
$vp_content = apply_filters(‘the_content’, $vp_content);
$vp_content = str_replace(‘]]>’, ‘]]>’, $vp_content);
echo $vp_content;
?>This works as intended site-wide, with the content of the info page showing in the sidebar…
…except on the designated events page. The content area of the events page has the list of events (with the search stuff on the top, etc.), but the exact same content is now showing up in the sidebar instead of the info page content.
Is there a template we have to tweak someplace? What do we have to do to get the info content in the sidebar instead of the events page content?
- The topic ‘[Plugin: Events Manager] Sidebar content overridden’ is closed to new replies.