Linked Questions

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
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
11 votes
2 answers
150k 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', '...
Michiel Standaert's user avatar
8 votes
4 answers
86k 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. ...
caramba's user avatar
  • 1,416
4 votes
2 answers
65k 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 * ...
user6311172's user avatar
3 votes
1 answer
14k views

category__in not working on custom post type

Can't get my WP_Query loop to work, cannot figure out why category__in won't work. Just want to pull certain categories FROM my custom post type $args = array( 'post_type' => 'bbt', '...
rand_user91's user avatar
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 ...
Trupti's user avatar
  • 31
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 ...
Scott Wolter's user avatar
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
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
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
2 votes
1 answer
4k views

Displaying all Video Post Formats to Page

I am creating a video-archive page for all the posts_format with video. Currently, I have: <?php $format = has_post_format('video', $post_id); ?> <?php if($layout != "fullwidth") { ...
Travis Patron's user avatar
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 ...
Adrian's user avatar
  • 354
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

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
  • 185

15 30 50 per page