Linked Questions
31 questions linked to/from Is There a Difference Between Taxonomies and Categories?
0
votes
1
answer
2k
views
Make a vertical dynamic list of posts in alphabetically order and in columns [closed]
I have a page that lists all the posts from a given category of an custom post type dynamically. I do this with a plugin that list posts and a shortcod and with css i created 9 columns where they are ...
0
votes
2
answers
2k
views
Adding a button to a product if it's in a category, then linking to that category
I've got a site with products... and some of those products are in categories (collections). For those products I want to show a button 'view the collection,' and have that link to the category.
So, ...
0
votes
1
answer
1k
views
WP Query - filtering terms with regex
is there a possibility of filtering posts by terms using regexp? My code doesn't quite seem to work.
$tax[] = [
'taxonomy' => 'tax_name',
'field' => 'name',
'terms' => $...
1
vote
2
answers
1k
views
How to show WordPress parent and child category using a different template?
I am currently trying to do a directory style site, and I currently have parent categories and child categories.
Right now, I have the parent categories showing and when a parent category link is ...
2
votes
1
answer
600
views
Does WordPress Offer a Way to Find All of the Categories that Don't Have Children?
Background
As discussed in Is There a Difference Between Taxonomies and Categories, taxonomies refer to a generalized system of classification and organization of objects or data. In the case of ...
3
votes
1
answer
905
views
Conditional tag for all categories of a custom post type
I need a conditional tag which returns true on all categories added to a specific custom post type.
Tried dozens of variations using the conditional tags from the Codex but still stuck.
What i'm ...
1
vote
2
answers
253
views
All posts are still shown when adding category argument to query
I've got the following code in my team-type.php file which I'm using to create a custom taxonomy for a member information:
function create_team_taxonomies() {
$labels = array(
'name' ...
0
votes
2
answers
765
views
Post archive for certain post format
I am using the following code for a custom archive of all posts:
$taxonomy = 'category';
$param_type = 'category__in';
$term_args = array(
'orderby' => 'slug',
'order' => 'ASC'
);
$...
1
vote
1
answer
1k
views
Get posts from specific taxonomy term
I have nhl news website and I have taxonomy for each season (ex 2014-15)
Taxonomy in functions:
function wptp_register_taxonomy() {
register_taxonomy( 'season', 'post',
array(
...
0
votes
2
answers
819
views
Widget logic conditional widget
Is there any experience using widget logic, I want to display a widget on single custom post type with specific taxonomy. Tried using
is_tax(taxonomy_name) || is_single() && in_term(...
0
votes
1
answer
570
views
Related Posts Excluding Certain Categories
I'm using a related posts PHP WordPress query, but having trouble excluding categories. I've tried excluding via cat and category__not_in as well as both as and not as an array. What am I setting up ...
0
votes
1
answer
546
views
Custom term templates
So, I did some research online but could not find a solid answer, so here I am.
I am in need to make a custom woocommerce category page for a specific category.
For example, I have a category called ...
0
votes
1
answer
243
views
Also show terms that are related to draft and pending posts
Im using wp_dropdown_categories to output terms in dropdown menu but it only shows terms that are related to published posts.
I wonder if there's a way / hack to include terms that are related to ...
0
votes
1
answer
58
views
In what context should Categories and Tags be used
I was thinking on writing up a post called "Review: Ni no Kuni" which would be a personal review on the title game having finished it. Under categories i could make a "Reviews" Category to group all ...
0
votes
0
answers
58
views
Category archives
According to the WordPress docs, to show a Category archive you simply need to create a file with the right file name
i.e.
category-slug.php
category-ID.php
category.php
archive.php
However what I'...