• Resolved justinplambert

    (@justinplambert)


    I know I’m probably doing something stupid, but I’ve spent hours trying to figure it out and it’s just escaping me.

    I have several different sidebars set up to replace the primary sidebar based solely on which category is chosen. Each sidebar is set up to “replace” at the “top” position, with “singular and archive” as the exposure setting. I have experimented with changing each of these items in various configurations and see no difference. My primary sidebar always displays no matter what configuration I use and no matter what category the displayed post is.

    Here is a screenshot of one of the sidebar config screens.

    The sidebars on my site only display on the blog pages at https://www.justinplambert.net/blog

    Please help me figure out what I’m doing wrong.
    Thanks,
    Justin

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Your settings looks fine.

    The most common reason for this problem is that another plugin or the theme has forgot to “destroy” the data made by a custom database query. This means that WordPress, and therefore Content Aware Sidebars, thinks that another page is being displayed.
    This is fixed by inserting wp_reset_postdata(); after the custom database query.

    Can you tell me what other plugins you are using?

    Thread Starter justinplambert

    (@justinplambert)

    Thanks very much for reviewing this. I’m not certain where/how to insert the code you referenced, so please elaborate if you could. Here are my current active plugins:
    123ContactForm for WordPress
    Akismet
    App Creator
    bbPress
    bbPress Admin Bar Addition
    BruteProtect
    Content Aware Sidebars
    FeedBurner FeedSmith
    Google Analyticator
    Google XML Sitemaps
    GPP About You Widget
    Greg’s High Performance SEO
    Insert JavaScript & CSS
    Memberful WP
    podPress
    Responsive Video Embeds
    Social Media Feather
    Spokal
    WordPress Editorial Calendar
    WP-PageNavi

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Have you created a content aware sidebar before that worked?

    Thread Starter justinplambert

    (@justinplambert)

    Yes, as an experiment I set things up to change the bottom widget area using the same parameters and it worked flawlessly. But my strategy will work far better if the bottom area stays the same and the main sidebar changes based on the category chosen.

    Plugin Author Joachim Jensen

    (@intoxstudio)

    If you have had a sidebar that worked with the same parameters, then there should be no problems with database queries. If you take the content aware sidebar in question and change the host sidebar to something else, will it then be displayed?

    Thread Starter justinplambert

    (@justinplambert)

    I’m sorry. I’m not sure what you mean. At the time when I had the content aware sidebar working on the bottom of the page, the paramaters were the same, but I had a separate second sidebar created for every category that referenced the bottom widget section. The main host sidebar (on the right side of the page) has never functioned properly, before, during, or after the bottom portion worked.

    Plugin Author Joachim Jensen

    (@intoxstudio)

    So if you go to the edit screen of the sidebar in question, can you change the Handle option to “Replace: Bottom Sidebar (or what the sidebar’s name is)” instead of “Replace: Primary Sidebar”.

    Is the sidebar then displayed where you expect it? This is to see if there is something wrong with the Primary Sidebar specifically.

    Thread Starter justinplambert

    (@justinplambert)

    At this point, the bottom sidebar does not function either when I do as you described.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Tried Everything, Please Take a Look at My Site’ is closed to new replies.