• Resolved DebsWebs

    (@debswebs)


    I have my Adverts bulletin board set up, but have noticed that the sidebar I want to be displayed is not being displayed on the individual ads pages nor is it displayed on the manage/add pages. I have chosen a specific sidebar for the Bulletin Board (main Adverts) page and I would like that same sidebar to be displayed for all of the Adverts pages.

    As it currently is, I get one sidebar (not the correct one) on the individual ads pages and a different sidebar (again, not the correct one) on the manage/add/preview pages. Can you help me get the plugin to only display the one sidebar that is selected for the main Adverts page?

    https://www.ads-software.com/plugins/wpadverts/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    This is mainly an issue with theme not the plugin, most of the time you should only need to create a single-advert.php file in your theme directory and copy there code from single.php this will be template for Adverts.

    Now the theme authors get sometimes creative with their themes in a wrong way, so this might now work for you, it would be best to ask your theme author how to get the same sidebar for Advert custom post type as on your Adverts page.

    Thread Starter DebsWebs

    (@debswebs)

    Hi Greg,
    Thank you for the help. I have added the single-advert.php file like you suggested in your post above. That worked great to get the correct sidebar on the individual ads. But it did not correct the problem in the add an ad and manage ads pages. Any suggestions for those two items? I love what you have done with this plugin. It is perfect and exactly what I have been looking for for quite some time.
    Thanks in advance for your help.

    Plugin Author Greg Winiarski

    (@gwin)

    This also might depend on the theme i guess, you wrote earlier that you have correct sidebar for Ads list, maybe you have some settings (in wp-admin / Pages panel) that allow you to select sidebar and/or correct page template for this pages?

    Thread Starter DebsWebs

    (@debswebs)

    Hi Greg,

    I have an update. Actually, the sidebar issue is completely resolved and the sidebars are working perfectly now, as long as the single-advert.php file is installed. However, I now have a different issue. When I click on an ad to get the details, the ad page doesn’t appear, but all of the photos in my media library appear as full sized images in place of the ad.

    When I remove the single-advert.php file, the add an add and manage adds sidebars are still good – they are the same as the main Adverts page, but the ad detail page sidebar is not.

    Plugin Author Greg Winiarski

    (@gwin)

    Seems like you have some kind of fatal error in single-advert.php, try to enable WP_DEBUG in your wp-config.php file https://codex.www.ads-software.com/Debugging_in_WordPress it should show actual error message at the bottom.

    Thread Starter DebsWebs

    (@debswebs)

    Hi Greg,

    Here is what I get when I run the WP_DEBUG.
    Notice: Undefined variable: post_id in /home/bayoucit/public_html/bayoucityflyersrc.com/wp-content/themes/catch-evolution-pro-child/single-advert.php on line 10

    Here’s what’s on line 10: <?php $images = get_children(array(‘post_parent’=>$post_id)) ?>

    I actually responded to your help the day you sent it, but I think I probably replied to your email so you never received it.

    Thanks for helping with this.

    Plugin Author Greg Winiarski

    (@gwin)

    Hmm the Notice on your side should not be a cause of the problem, can you link here to your site so i can see how it looks like?

    Thread Starter DebsWebs

    (@debswebs)

    Hi Greg,

    Here is the link to the bulletin board page on my site: https://bayoucityflyersrc.com/index.php/bulletin-board/

    Id like for the individual ads to display the sidebar that is on this page, but that is where the problem has come in. The individual ads page is displaying a different sidebar. When I added the single-advert.php file to my theme, then I got the problem that you see now.

    I think I might have a work around (I can create this sidebar to contain the content that I need on this page, but then I would have to recreate all of my other sidebars), but I would prefer to have the choice of which sidebar should be displayed on the individual ads page rather than it just defaulting to this one.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, hmm your workaround might be the best option, i am not really sure. It seems you are using premium theme so the best option would be to ask their support how to use the same sidebar for Advert custom post type.

    The other options would be to try using some third party plugin like:
    https://www.ads-software.com/plugins/content-aware-sidebars/
    https://www.ads-software.com/plugins/custom-sidebars/

    Thread Starter DebsWebs

    (@debswebs)

    HI Greg,

    I will go with my workaround for now. The only problem that might come up is if I need to add another sidebar. Then I guess I’ll look into one of the options that you suggested. Thanks for your help.

    Debbie

    Thread Starter DebsWebs

    (@debswebs)

    Hi Greg,

    I’m sorry to bother you again. But, now my site is no longer displaying sidebars on any of the individual ads/add an add/manage your ads pages. I removed the single-advert.php file from my theme because it was causing the issue with the media library displaying instead of the individual ads.

    Overnight, my sidebars that were working are now gone. Any suggestions?
    I created a sidebar that is the default for posts not pages, and it was the one that was appearing on the individual ads. But no longer. Is this a theme issue or a plugin issue?

    Thread Starter DebsWebs

    (@debswebs)

    Hi Greg,

    I have an update. This is a theme issue. I am using another plugin for a photo gallery and I don’t want a sidebar on that plugin. So the theme developer told me to set the theme to no sidebars as the default setting. So I did that and that’s when the sidebars disappeared in your plugin. They also disappeared in the photo gallery plugin which was great. However, I need the sidebars in your plugin because that’s where my membership navigation is and members can’t navigate without the sidebar. Ugh…..

    So, please disregard my last email. Thank you SO much for all of your time and your help. I will give your plugin 5 stars! I will go back to the theme developer with this one for a fix.

    Debbie

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    ok great, thanks in advance for the review, i am marking this thread as resolved, in future this should be helpful for others as well.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Sidebar problem’ is closed to new replies.