Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 12: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, 04:54 AM
juggledad's Avatar
juggledad
 
23,765 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, 07: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, 06:25 AM
juggledad's Avatar
juggledad
 
23,765 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 03:46 PM
Setting to show post images on home page? burnhamg Center area post/pages 1 Dec 10, 2010 08:46 PM
Simple Custom Post Type Archives AnaRita Plugins & Atahualpa 2 Oct 9, 2010 07:16 AM
Post title and sidebar title font type and size SamuelGoh Atahualpa 3 Wordpress theme 0 Feb 8, 2010 01:22 AM
Home link doesn't show in multi-post pages mcgiver058 Page & Category Menu Bars 9 Sep 4, 2009 09:51 PM


All times are GMT -6. The time now is 03:41 AM.


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