paolosan
Member
Posted 4 months ago #
Hello, thanks for your plugin, i have a question,
I use this theme http://white-rock.progressionstudios.com/ and i would like to use your plugin, but my theme use custom post, http://smartsocialmedia.fr/demo/restaurant/?menu_type=pizzas
my question is how i can choose my sidebar on a custompost
thank you
http://wordpress.org/extend/plugins/simple-page-sidebars/
Hi paolosan. This plugin was mainly built for use with pages, so it's not particularly suited for using with custom post types. Although, if you're comfortable editing code, you can add a short snippet to your theme's functions.php file to add support to other post types.
Otherwise, there are a few other plugins that you might look into for more advanced functionality.
rtwheelock
Member
Posted 1 month ago #
Brady,
What is the short snippet that I would have to add to accomplish showing the custom sidebar options on pages with the different post-type than "page" I have been looking through the plugin and have not been able to find how to do it.
Your help is greatly appreciated.
rtwheelock
Member
Posted 1 month ago #
forgot to subscribe to the topic
Just add this snippet and replace {{post_type}} with your custom post type:
function customprefix_init() {
add_post_type_support( '{{post_type}}', 'simple-page-sidebars' );
}
add_action( 'init', 'customprefix_init' );
rtwheelock
Member
Posted 1 month ago #
That did it, thank you so much and thanks for the super speedy reply. That was awesome.
Thanks for a great plugin!!
No problem. Glad it worked for you and thanks for the feedback!