Results 1 to 5 of 5

Thread: Custom Sidebars for Categories

  1. #1
    Thread Starter
    Expired Customer lane's Avatar
    Join Date
    Aug 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom Sidebars for Categories

    Trying to creat custom sidebars for each category. In my case that is a city - so I can have advertising specific to that area in the sidebar. Tried lots of plugins and none work except Content Aware and that caused other problems. Trying to code myself.

    I know it would be something along these lines in the archive-listing.php file.
    Code:
    <?php 
    if ( is_tax( VA_LISTING_CATEGORY, 'columbus' ) ) {
        get_sidebar( 'columbus' ); 
    } and if ( is_tax (VA_LISTING_CATEGORY, 'toledo' ) ) {
        get_sidebar( 'toledo' ); 
    }  else {     
     get_sidebar( app_template_base() );
    } 
    ?>
    I added the sidebars easily - just dont know how to do this. Any help would be greatly apprecaited!
    Thanks

  2. #2
    Veteran annonse's Avatar
    Join Date
    Jun 2011
    Location
    Norway
    Posts
    440
    Thanks
    58
    Thanked 62 Times in 44 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Expired Customer lane's Avatar
    Join Date
    Aug 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Expired Customer lane's Avatar
    Join Date
    Aug 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Amateur shoutonline's Avatar
    Join Date
    Sep 2012
    Location
    United Kingdom
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I show classified categories widget in multiple sidebars?
    By ephibiz in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: March 20th, 2013, 07:36 PM
  2. Suggestions for Custom Sidebars
    By rawearthman in forum Report Vantage Bugs (Legacy)
    Replies: 2
    Last Post: June 21st, 2012, 09:27 PM
  3. Any way to create custom sidebars to correlate with pages?
    By hadez in forum JobRoller General Discussion
    Replies: 3
    Last Post: February 3rd, 2012, 04:09 PM
  4. Sidebars
    By abhijeet in forum WordPress General Discussion
    Replies: 1
    Last Post: September 21st, 2011, 01:34 AM
  5. Setting up Custom Sidebars
    By greendog in forum Clipper General Discussion
    Replies: 3
    Last Post: August 8th, 2011, 10:49 PM