Forum Replies Created

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

    (@gpcam)

    I didn’t want to start a new thread since this is somewhat related..

    FYI

    Another thing I had to edit was “Settings”, “Options & Configurations” within the Edit Page area. I just deleted those out of the descriptions.

    Oh, BTW, I added your plugin to the Credits Page and noticed that in the highlighted name of your plugin.. it doesn’t link to anything. You might want to look at that and add a link to your website or to the plugin page on wordpress.

    Thanks for this plugin. It’s a great idea!

    While I don’t have an answer for the php coding to get the sidebars working correctly on the Blog page, I do have 2 workarounds.

    1) use the plugin Custom Sidebars and refer to thread HERE whereby I asked plugin author how to use his plugin to do that.

    Short answer: set up default sidebar for Blog; then use plugin for all other pages.

    2) after using the php coding to set up custom sidebar php files, I used the plugin Widget Logic whereby in my sidebar 2 I dragged widgets that I wanted on blog (archives, tag cloud, etc) and used Widget Logic (within each widget) to specify only use those widgets on Blog.

    In the widget logic box I used:
    is_home()

    I hope this post is helpful to others who are trying to create different sidebars on different pages.

    Thread Starter gpcam

    (@gpcam)

    Thank you marquex.

    So it’s just a matter of seeing the Blog as Main page, and the Front page as just a page.. in my head..lol.

    I think I can make it work now.

    Thanks for your reply!

    I have the same issue. I’m using Nona theme with WP 3.

    I created a front static page (Home) and blog posts going to the Blog page (as set in Settings-Reading.)

    I’ve created custom sidebar php files that work on other pages but not for the blog. I either get the Home page sidebars or nothing.

    I was following the instructions here:
    http://www.webhostingsearch.com/articles/post-specific-sidebars-wordpress-tutorial.php

    Created my sidebar-xxx php files and added the code like below.

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('myblog') ) : ?> <?php endif; ?>

    I also added the following code to page php & index php
    (replacing the php get sidebar code that was there.)

    <?php $sidebar = get_post_meta($post->ID, "sidebar", true); get_sidebar($sidebar); ?>

    As I said all the other pages work, bringing up my custom sidebars except for the blog page.

Viewing 4 replies - 1 through 4 (of 4 total)