Posted: May 4, 2016 at 12:21 pm
In addition to EE categories we also have a regular WordPress blog on the site. When going to a WordPress category page it’s trying to load EE code. When I compared a page that worked to one that didn’t here is the extra code that was in the page that didn’t work (I had the same issue on a regular page–not a category page). The single post page is working fine. <link rel=’stylesheet’ id=’ticket_selector-css’ href=’http://www.atthemac.org/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/assets/ticket_selector.css?ver=4.5.1′ type=’text/css’ media=’all’ /> <div id=”espresso-notices”></div> <div id=”espresso-ajax-notices”> <div id=”espresso-ajax-notices-success” class=”espresso-ajax-notices success fade-away” style=”display:none;”> <div id=”espresso-ajax-notices-attention” class=”espresso-ajax-notices attention fade-away” style=”display:none;”> <div id=”espresso-ajax-notices-error” class=”espresso-ajax-notices error fade-away” style=”display:none;”> <script type=’text/javascript’ src=’http://www.atthemac.org/wp-includes/js/underscore.min.js?ver=1.8.3′></script> |
|
The body tag is as follows: |
|
It turns out that a regular WordPress category archive page will load up Event Espresso code because because if one of the posts in that archive has an Event Espresso short code in its content, the code needs to run. That said, none of the code above should cause anything to break though. Can you explain what’s not working with your category archive page, and maybe post a link here so we can investigate? |
|
Thank you. It is breaking the calendar in the sidebar. http://www.atthemac.org/category/blog/ |
|
Hi there, I’m not certain if this will fix the calendar, but you can try adding this code to your theme’s category.php template:
You add it just before where it has this: If that doesn’t help please let us know and it may help to be able to look at the calendar widget plugin’s code. |
|
I am sorry to say that that did not change anything. The calendar that is being used in the sidebar is not the EE Calendar Widget it is the Blog Post Calendar. |
|
Where would I be able to download the plugin that adds the blog post calendar? |
|
I am sorry, but I need to remove the calendar from the sidebar while it’s still broken; however, I think you should still be able to see that extra code that’s added to the category pages. The main news page has the calendar rendering fine and doesn’t have the extra code. Thank you. |
|
Hi there, I’ll see what I can do about putting together a code snippet that will dequeue the extra CSS and JS from loading on that category archive page as a stop gap fix for this. |
|
The support post ‘WordPress Category page pulling Event Espresso code’ 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.