Hello,
I’ve looked through the Theme Settings under “CPT & Taxonomy” and I cannot find an area to choose a default sidebar on the ‘single’ template for each custom post type I have. I can only choose a default sidebar that affects the taxonomy pages.
I’ve already checked this page for advice: https://forum.tagdiv.com/custom-post-type-support/
Any suggestions?
Thanks!
-
This topic was modified 10 years by
superherogeek.
Hi,
You can set the sidebar(custom and position) if you create a custom template and set it individually for each post – http://screencast.com/t/7fQGqRyXt4u0 There is no global sidebar option, only that from the taxonomy settings. The custom post type support is still in development and like you can see in the cpt documentation the example provided has minimum settings. If you want the default settings for it you will need additional customization. We would have gladly made it for you, but the time doesn’t allow us to offer custom work, sorry!
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].
Thanks for the response!
I have a Custom Post Type for classified ad listings and events which are updated entirely once a week – automatically via a import script. Let’s say have a custom sidebar named “Classifieds Sidebar.” If I were to add into the post meta:
$td_theme_meta = array ( 'td_sidebar' => 'Classifieds Sidebar' );
add_post_meta ( $post_id, 'td_post_theme_settings', serialize( $td_theme_meta ) );
Would there be any other postmeta to change?
-
This reply was modified 10 years by
superherogeek.
Salut Lucian,
Is there any progress on this topic? Will it be possible to set default sidebar for each custom post types in the near future? I need to import thousands of posts into several different posts types and I would like to know if I should set a custom sidebar for each post during the import, or I will soon be able to set the sidebar on a custom post type basis. In the future I will probably need different content to the sidebar of each custom post types.
Best regards,
Tibor
While I hate the idea of necroing threads it would be a handy feature.
I also propose for custom post types we should have the ability to filter out the author box, and such because it isn’t needed for all post types for instance I have an example I am working on where I don’t need author box, share buttons, etc.
It would be nice for a deeper custom post type support within the theme.
Hello,
Unfortunately at the moment we have not gotten any closer to this as there were many other priorities that needed fixing. It’s still on our list for future implementation but it’s the developer team that decides the moment when such options will become available.
Thank you for your understanding.
