Linked Questions

1 vote
1 answer
8k views

Retrieve Image from Media Library by it's category

What I am needing to do here is get an image from the media library only by it's category. It won't be attached to a post, meaning that, the image will not be uploaded as a "featured image" of any ...
Samuel Hadsall's user avatar
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
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 ...
Benjamin's user avatar
  • 175
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 ...
N00b's user avatar
  • 2,159
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 ...
Keefer's user avatar
  • 316
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 ...
Steve Kim's user avatar
  • 365
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 ...
Memor-X's user avatar
  • 143
0 votes
1 answer
12k views

Category Template for Custom Post Type

I'm driving myself crazy with the following issue, hope you can help me! I'm working on a WordPress theme for a business directory so I decided to make some custom posts types on functions.php file ...
active-worker's user avatar
0 votes
1 answer
38 views

Custom Taxonomy Query by Taxonomny not working

Not sure what's going on - here's a look at my code: $args = array( 'orderby' => 'title', 'show_posts' => '-1', 'posts_per_page' => '-1', 'cat' => $goalsCat->cat_ID, ...
Jason Herndon's user avatar
0 votes
1 answer
77 views

Custom taxonomy applied to links [duplicate]

is it possible to apply a custom taxonomy to links? if so how? i already did this, but it does not seem to work: $labels = array( 'name' => _x( 'Lessons', 'Taxonomy ...
Marco Montanari's user avatar
0 votes
1 answer
6k views

Breadcrumb not showing custom category post type

I have an issue when it come to displaying the custom post type category in my breadcrumb menu on the page it looks something like the following Home / / Post Title when it should be Home / Custom ...
Nsokyi's user avatar
  • 265
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 ...
fahad.kazi's user avatar
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
1 vote
0 answers
74 views

What is actually taxonomy in wordpress? [duplicate]

What is actually taxonomy in wordpress? How and where exactly I can use taxonomy. I have read many google search about it but need someone to just explain in little simple language.
Helping Hands's user avatar
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
  • 317

15 30 50 per page