WordPress.org

Ready to get started?Download WordPress

Forums

Unique Page Sidebars
[resolved] Wasn't able to get it to work. (3 posts)

  1. laptophobo
    Member
    Posted 2 years ago #

    Your plugin seems like a godsend since my webs are mainly CMS which require unique sidebars on every page.
    I'm not a PHP person, so maybe it was me not understanding the directions. Here's what I did:
    In my (custom) template (voice.php) I replaced the existing sidebar code:

    <?php
    	get_sidebar('voice'); ?>

    with your example (exactly as shown):

    <?php dynamic_sidebar( apply_filters( 'ryno_sidebar', 'default-sidebar-id' ) ); ?>

    I then put the following in functions.php:

    register_sidebar(
      array(
        'name' => 'default-sidebar-id',
        'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
        'after_widget'  => '</li>',
        'before_title' => '<h2 class="widget-title">',
        'after_title' => '</h2>',
    ) );

    In the Manage Sidebars panel I created a new sidebar "voice". I then checked the page in the "All Pages" list that I wanted the sidebar to appear in (Voice News) and set the attributes (Name, Description, Before Title, etc...) per your example.
    And, nothing changes on the page's edit view.

    One suggestion is that a step-by-step example/instruction be developed for WordPress dummies like myself.

    Thanks in advance. I think you have a very valuable product here.

    http://wordpress.org/extend/plugins/unique-page-sidebars/

  2. Andrew Ryno
    Member
    Plugin Author

    Posted 1 year ago #

    Really late on this (haven't really maintained this plugin) but this should be fixed in 0.2. I had a problem in my documentation that said the filter was ryno_sidebar when it was really ups_sidebar. Stupid mistake on my part. I fixed another bug and added the ryno_sidebar filter back in just in case people are still using that.

    I'm sure you probably gave up on this plugin, though. Sorry about that!

  3. guzzettg
    Member
    Posted 1 year ago #

    I am trying to get the plugin to work (it would be VERY helpful) with a platform themes but I can't figure it out where to insert the code. I couldn't find a functions.php and I am not sure where I should put the template code.

    Do you think you can help?

    Thanks very much for the plugin. Very nice idea.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic