Tagged: buddyblog
Thank you. I will post the code in an hour.
Thank you
BrajeshHi,
Here is the codeadd_filter( 'buddyblog_post_form_settings', 'buddyblog_show_custom_cats', 100 ); function buddyblog_show_custom_cats( $settings ) { $tax = array(); $tax['category'] = array( 'taxonomy' => 'category', 'view_type' => 'checkbox', 'include' => array( 1, 35,97 ), //CHANGE It with the correct IDs, 'orderby' => 'slug', 'order' => 'ASC' ); $settings['tax'] = $tax; return $settings; }
Please change ids to your allowed categories and It will only list them.
Hope that helps.Thank you.
Putting in child theme’s functions.php should work fine too. Any chance you are on multisite and that child theme is not being used on your current site?
You must be logged in to reply to this topic.
This topic is: resolved