Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Show Sidebar Only On Custom Post Type Home


  #1  
Old Aug 7, 2012, 01:19 AM
bswb97
 
158 posts · Aug 2010
I would like to only show the Right Inner Sidebar on the Home and Category pages for my Custom Post Type called Books.

Based on my previous thread, I've been using this conditional If to help display specific content on the Home page for the CPT:

PHP Code:
<?php  if ( (get_post_type() == 'books') and !is_single() )
        echo ... ; 
?>
How can I apply that so that the Right Inner Sidebar only displays on the same parameters?
  #2  
Old Aug 7, 2012, 05:54 AM
juggledad's Avatar
juggledad
 
23,687 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
go taake a look at the theme options for sidebars
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 7, 2012, 08:56 PM
bswb97
 
158 posts · Aug 2010
Using the sidebar options for Home displays on both CPT and general home/category pages. I want it to only display CPT home and CPT category pages, not the general one.
  #4  
Old Aug 8, 2012, 07:25 AM
juggledad's Avatar
juggledad
 
23,687 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
This is something that would take more than a 'few minutes' to figure out and due to paying customer and family committments, I don't have the 'free' time to dig into this.

I would suggest looking at the code in footer.php and see if you can get it to work in there.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
custom post types, sidebar display

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show Custom Post Types in Atahualpa? GreenCoast Center area post/pages 2 Feb 15, 2011 04:46 PM
Setting to show post images on home page? burnhamg Center area post/pages 1 Dec 10, 2010 09:46 PM
Simple Custom Post Type Archives AnaRita Plugins & Atahualpa 2 Oct 9, 2010 08:16 AM
Post title and sidebar title font type and size SamuelGoh Atahualpa 3 Wordpress theme 0 Feb 8, 2010 02:22 AM
Home link doesn't show in multi-post pages mcgiver058 Page & Category Menu Bars 9 Sep 4, 2009 10:51 PM


All times are GMT -6. The time now is 11:02 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.