[Plugin: Q & A FAQ and Knowledge Base] Add an option to remove the "Posted in:" Catego
-
I would like to have the ability in the next version to choose if I want to hide or display the FAQ category inside a single post.
Currently I’ve made the following change, adding if statment atr the beginning of add_categories_to_single function, in the functions.php file:
function add_categories_to_single ($content) { global $qaplus_options; if ($qaplus_options['catlink'] == "false") { return $content; } global $post; $faq_cats = qa_add_categories(); if ( is_single() && 'qa_faqs' == get_post_type($post) && !empty( $faq_cats ) ) { $qa_cats = '<p class="qa_cats">' . __('Posted in: ', 'qa_plus') . $faq_cats . '</p>'; $content = $content . $qa_cats; return $content; } else { return $content; } }
I would appreciate if a change resemble to this will be added in the following version of the plugin.
Thanks,
Eyal
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Q & A FAQ and Knowledge Base] Add an option to remove the "Posted in:" Catego’ is closed to new replies.