- This topic has 1 reply, 2 voices, and was last updated 7 years, 8 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
Magento to WordPress Migration The migration process is indeed helpful for your dream business as your e-commerce business needs this buckle up to grow and […]
Promising WordPress Themes We have collected the most promising WordPress themes to guarantee the sustainable and revenue generating nature of your website revolving around any […]
Free WordPress Google Map Plugins Google Maps are the maps that can be integrated into your website to show the address in the proper way. […]