Linked Questions

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 ...
user2059370's user avatar
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, ...
Nick's user avatar
  • 1
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' => $...
Pavel Koch's user avatar
3 votes
1 answer
919 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 ...
Brad Dalton's user avatar
  • 6,936
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 ...
Arif's user avatar
  • 21
2 votes
1 answer
605 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 ...
gate_engineer's user avatar
1 vote
2 answers
255 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' ...
Laniakea's user avatar
  • 503
0 votes
2 answers
782 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' ); $...
Alex's user avatar
  • 1
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( ...
LinekereDe's user avatar
0 votes
2 answers
824 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(...
da_root's user avatar
  • 150
0 votes
1 answer
575 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 ...
Keefer's user avatar
  • 316
0 votes
1 answer
558 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 ...
Steve Kim's user avatar
  • 365
0 votes
1 answer
248 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 ...
N00b's user avatar
  • 2,169
0 votes
1 answer
59 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 ...
Memor-X's user avatar
  • 143
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'...
Snowcrash's user avatar
  • 327

15 30 50 per page