• Resolved tnault

    (@tnault)


    I have a few sidebars set up for different items; Blog, Gallery, and Products. I am using a woocommerce for a shop and use my Product sidebar customize for those pages. On the Gallery posts I am using a shortcode to display related Products based on matching tags. When using this shortcode the Gallery post shows the sidebar for Products. When I remove the shortcode the Gallery post shows the correct sidebar that I have configured for Gallery posts.

    Website is exposurephotoworks.com..Any thoughts on what could be causing this?

    Thanks,
    -Tim

    https://www.ads-software.com/plugins/content-aware-sidebars/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tnault

    (@tnault)

    Some additional details. The shortcode I am using is custom and can be seen at ..https://www.remicorson.com/list-woocommerce-products-by-tags/

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for your detailed feedback.

    Most often when a sidebar is not displayed where it ought to, the cause is an external mechanism (plugin, theme) “messing” with the Conditional Tags in WordPress.
    This makes your WordPress site think that another type of content is being viewed.

    Looking at the code in the link you provided, this seems also to be the case here.

    Can you insert wp_reset_postdata(); after endwhile; on line 61?

    Thread Starter tnault

    (@tnault)

    Worked like a charm. Thanks!

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Great! If you have any more problems or questions, do not hesitate to open a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode on Post affecting Condition Groups’ is closed to new replies.