Product page query interfering with page query (outside loop)
-
I really love Exchange… but I am having an issue on one of the sites I have installed it on. In my footer, I am pulling in a page outside of the loop and that query is being overriden by the Exchange product page query when I try to include the apply_filter function.
I have been able to make this query work AS LONG AS I don’t try to apply the filters to the_content to maintain formatting. Once I add that, no content appears and instead the content is replaced by the current Product content. The Product content also shows up in the proper spot in the page.
I have not customized the Exchange loops or main pages although they are being served up from within my theme (in case I want to) as suggested.
Here is the original page query (which worked perfectly without Exchange as I said) :
<?php $my_postid = 4; $content_post = get_post($my_postid); $permalink = get_permalink($page_id); $content = $content_post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); ?> <?php echo $content; ?>
The page I’m messing with is here (be aware that I may still be trying stuff hit or miss) :
https://www.vizou.com/product/medium-pony-cart/Help?
- The topic ‘Product page query interfering with page query (outside loop)’ is closed to new replies.