- This topic has 1 reply, 2 voices, and was last updated 6 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › All Other Themes › SKT-Magazine Pro – Keywords/Tags on Pages
Hello, i have buy the SKT-Magazine Pro and one Question. How i can use Keywords/Tags on a static Page? With a Plugin or with a code in functions.php?
I have found this Code in an other Forum. Can i use this Code in function.php?
// add tag support to pages
function tags_support_all() {
register_taxonomy_for_object_type('post_tag', 'page');
}
// ensure all tags are included in queries
function tags_support_query($wp_query) {
if ($wp_query->get('tag')) $wp_query->set('post_type', 'any');
}
// tag hooks
add_action('init', 'tags_support_all');
add_action('pre_get_posts', 'tags_support_query');
Hi,
Yes, you can use it in functions.php file.
Regards,
Brad
If you are operating an online shop, then you know how essential it is to display the right price information with your products so that […]
As an author, it is essential to make your WordPress website more attractive, and we’ll function to please your readers in the right way. Picking […]
Round up of best WordPress recipe plugins for food and chef websites WordPress as extremely powerful and popular website creation and publishing system has become […]