Linked Questions
31 questions linked to/from Is There a Difference Between Taxonomies and Categories?
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 ...
4
votes
2
answers
64k
views
WP_Query by Category Name
Hi I am using some code to display posts in a slider on a page, and at the top I have some code to filter it using WP_Query. Here it is, not sure what is wrong:
<?php
/**
* Featured Content 2
*
...
8
votes
4
answers
80k
views
Get taxonomy names by post id
I'm trying to create a single page where I display a few posts on one page. So far so good. Works all fine. Now I display posts in a foreach loop where I check if they are connnected to the page.
...
11
votes
2
answers
143k
views
Wordpress get_posts by category
I have the following bit of code:
$args = array(
'posts_per_page' => -1,
'category' => 7,
'orderby' => 'name',
'order' => 'ASC',
'...
0
votes
1
answer
2k
views
How does the 'the_post_navigation()' work for CPT's?
In the twentyfifteen theme on the single.php template they are using the fairly new function 'the_post_navigation'. It seems to work for Custom Post Types (CPTs) but I cannot figure out how it does ...
2
votes
3
answers
2k
views
Taxonomy archive template to have conditional logic for displaying child categories
I have a custom post-type "downloads", and within the downloads menu, I have download categories, the taxonomy name is "downloadcats".
My Downloads page uses a page template that lists all categories ...
0
votes
1
answer
3k
views
Getting custom taxonomy posts on archive page
Hi I am not sure if the question is understandable or not but what I am trying to achieve I will explain. I have a custom post type called menu item and custom taxonomy called menu item type.
CODE
...
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' => $...
3
votes
1
answer
6k
views
What are terms and taxonomy, how they related to post and how these three are stored in database?
I want to understand terms and taxonomy in WordPress.
My questions:
What are the terms and taxonomy in wordpress?
How terms and taxonomy relates to post and how post, terms, taxonomy are stored in ...
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
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
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'...
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(...
4
votes
1
answer
2k
views
expire wordpress user posts
I'm trying to make classified WordPress theme and I need to make users posts expire date plus show that date into the post.
Users only allowed to publish their posts in post-types not as ordinary ...