![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
Does anyone know how I can assign custom registered sidebars into a custom post type? I know how to create custom post types and register my own sidebars, but I'm not quite sure how to put them together. So lets say I have 3 different post types that all have a sidebar-content layout. I was thinking about something like this remove action (primary sidebar, do primary sidebar) add action (primary sidebar, new sidebars) function (new sidebars) {if custom-post-type-01, echo custom sidebar} I would then repeat the process for each custom post type. Does that seem right to anyone? I'll do some digging but I'm unsure about how to write the if statements. I think simple sidebars accomplishes this, but I installed the plugin and the featured sidebar doesn't appear in the post editor. I'm assuming this has to do with them being custom post types? Anyway, I think writing this function into the theme would be the way to go. I'm trying to minimize my plugin use anyway. Thanks! |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hard Coding Post Title to Home Page | rharejr | General Discussion | 2 | 02-26-2010 12:30 PM |
| Hard Coding Carousel | wpuser | General Discussion | 3 | 11-21-2008 04:50 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us