Viewing 1 to 4 of 4 items
Tag Archives: category

Remove a category from the front-page.php

The correct way to do this is to make use of pre_get_posts which change the query vars just before the main query is executed. Here is an example from the codex to exclude categories from the home page/blog page. For a full list of available parameters and values that you can use with pre_get_posts, visit  Full Article…


Display tags related to category

Get tags related to one (or more) specific category? Taken from WP Receipes: First, here is the function you have to paste in your function.php file: Once you have pasted the function, you can use it in your theme: