- This topic has 1 reply, 2 voices, and was last updated 7 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
The Horse Ranch WordPress Themes by SKT Themes are designed to highlight the beauty and professionalism of equestrian businesses. With stunning layouts for service descriptions, […]
Tarot WordPress Themes by SKT Themes offer visually stunning and intuitive designs tailored for spiritual services. With features like appointment booking systems, service sections, testimonial […]
Adventure Sports WordPress Themes by SKT Themes are designed to meet these needs with dynamic layouts, high-quality image galleries, and dedicated sections for services, tours, […]