Every Post in WordPress is filed under one or more Categories. Categories allow the classification of your Posts into groups and subgroups, thereby aiding viewers in the navigation and use of your site.

learn more… | top users | synonyms (1)

2
votes
1answer
47 views

CPT posts listed by category with custom rewrite URL, please help!

Here is what I'm trying to do: I have 10 total dessert recipes (in shared dessert category) that are divided by 2 custom post types. I want to create 3 different views of these posts with the custom ...
2
votes
0answers
13 views

Category checkboxes in upload modal

In a project I'm working on, I've enabled categories for attachments using: register_taxonomy_for_object_type('category', 'attachment'); In the edit attachment screen in the Media Library you see ...
0
votes
1answer
40 views

Display posts of specific category term

I'm using this code to first display each category term as headlines and then display a post which is assigned each category term under the headline. If I create a custom taxonomy it works as ...
0
votes
0answers
19 views

How to show comments for a specific category of posts with a shortcode

Referring to this post category specific comments here Display category-specific comments in sidebar I need to ask 2 further related questions. 1/ Is this code still valid for WP3.9? 2/ How can I ...
0
votes
2answers
40 views

How to show monthly archive posts?

my custom archives page is : <?php get_header(); print ('<div class="row">'); $archi = wp_get_archives('echo=0'); $archi = explode( '</li>' , $archi ); $archi_count = ...
0
votes
2answers
48 views

Display all of a post's categories except the current category

I use categories to order my posts into timelines. So for example, Jennifer Lopez There are no subcategories. All categories are on one level. The top post, "Wants Gomez" actually has two ...
0
votes
0answers
45 views

If on Category Page add “active” class?

I am trying to register an "active" class on my li if the category matches the page. If you click the horror category it will show you a loop with all the videos in that category. But the button for ...
0
votes
0answers
54 views

How to show related posts by category or custom post type?

I'm looking for the best way to go about creating, probably, custom post type where you can filter in the categories related to that custom post type in the sidebar. Here is the website I'm working ...
0
votes
2answers
49 views

How to remove category from wordpress url?

I am new to wordpress so i am facing a problem in removing /category/ from wordpress URL http://domain/category/category-name So i would like to know how to remove /category/ from the url. I have ...
0
votes
1answer
43 views

RSS/XML of all Categories and/or Tags

Is it possible to get an RSS / XML feed of all WordPress Categories and/or Tags? I've searched the Codex, which was very helpful in giving examples on how to access specific, individual RSS feeds, ...
-1
votes
2answers
40 views

How to retrieve posts from parent category, splitting them per children when displayed?

I have a Wordpress database with three categories: ID 3 : Europe ID 4 : France (child of 3) ID 5 : Paris (child of 4) I now need to display all posts under their respective category, like this: ...
0
votes
0answers
20 views

How to count the number of monthly archive?

<?PHP $num_cats = wp_count_terms('category'); echo $num_cats. '<br/>'; ?> I get the number of total categories from the above code. How can I get the total categories based monthly ...
0
votes
1answer
36 views

Anchor tag generates blank href attribute using echo esc_url( )

Following is my categories page. It's listing the all categories in the page. But when <a href> gets blank value here. see the attached screen shot. Why href is blank here li><a ...
0
votes
2answers
47 views

How to list all categories in three divs dynamically based on the quatity of categories?

I have 15 categories. I list this using <div class="category_list"><ul><li><?php wp_list_categories();?></li></ul></div> Now it's listing all 15 categories ...
0
votes
1answer
15 views

Change RSS format for specific categories

Is there way to have, in a single RSS feed, different formats for different categories? For example, if a post is a very long and technical one I would like to have only an excerpt (or a custom text ...
0
votes
0answers
22 views

Custom Search results page based on search

I am trying to find a way to create custom search results pages based on what the user searched for. I don't think it's possible with a global search since multiple posts may be pulled in but I wanted ...
0
votes
1answer
17 views

How to remove the category from post slug

I want to remove the category from post slug, for example a post slug like "http://my_site.com/uncategorized/hello-world/" would become "http://my_site.com/hello-world/". My search only gives ...
0
votes
2answers
23 views

post_categories array using variable

When using wp_insert_post can I do something like: $categories = '1,2,3,4,5' ...and then... 'post_category' => array($categories)
0
votes
1answer
28 views

Get categories and descriptions from custom post type

I'm trying to pull all of the categories associated with a custom post type within a loop, but I'm not sure how to get it so automatically pulls all of the categories automatically from the associated ...
0
votes
1answer
23 views

Exclude parent category when getting category posts by slug

I have the following category layout: Resources -- Documents I want to list the posts in the documents category, and have the following code: $args = array( 'posts_per_page' => ...
0
votes
1answer
37 views

Pagination doesn't work on multiple categories

I have the following problem. In my custom menu (wp_nav_menu) I added a category. This category uses the template category.php. Now I have multiple categories that are shown on the page. My problem is ...
0
votes
1answer
30 views

Categories in media library

I want to add a rather big sound collection to the media library. The problem is that i can't add category to the bunch of files while uploading them... I even can't add it to one uploading file.... ...
0
votes
1answer
21 views

Retrieve Product category 'NAME' by product category ID - WooCommerce?

Can I retrieve woocommerce product category name by ID? Not thumbnail, not the URL, not the Sub-categories, just raw Category name.
0
votes
0answers
29 views

Include categories in search results?

I am using the standard WordPress search and search.php file to display results. I want to query both posts and categories at the same time and return results in order of relevance. For example, I ...
0
votes
2answers
72 views

Multiple category posts on one page

Is it possible to have a section on a page that shows 2 excerpts from 4 different category posts, including their featured images? All I have so far is something like: <?php ...
0
votes
2answers
129 views

Display posts from the same category using next/previous post link

I am using this code, but once I click on the next post/previous post link, I am redirected to the next post/ previous post of the different category previous_post_link('%link', 'Prev post in ...
0
votes
1answer
77 views

Style sub categories differently from its parent category

I am new to wordpress and to this website. I've been searching for a solution to my problem. I found this code that solved my problem, but unfortunately I can't style the sub categories differently ...
0
votes
0answers
12 views

How to make my search result searched by post title and content and also categories only?

I would like to ask a question. Is there any solution to make my wp search result searched only by post title and categories? If this is a duplicate question, please refer me to the page where i can ...
0
votes
2answers
48 views

Categories and Tags not working!

I'm at the final debugging stages for a major web design project I've been working on for the last 6 months. The site itself is based on the has become a bit of a behemoth (merging 4 existing sites ...
0
votes
0answers
25 views

Newly created category does not show category

I'm creating New Posts in WordPress when i try to add New category and click on Add Category its does not show created category so default category used as category Its create create category but not ...
0
votes
0answers
21 views

Plugin for choosing categories in steps in admin, parent first then display childs

Situation: I'm setting up a CPT (multiple doing similar thing) where there will be a custom taxonomy only for that cpt... and it will have two levels; parent/child. So like this: CPT = Vehicles -- ...
0
votes
2answers
62 views

Category Alphabet List Broken

I need help in making this work in the latest version of wordpress. On Version 3.6.1 and down works well when I tested but when i decide to update WordPress well it breaks it. Ex: Version 3.6.1 looks ...
0
votes
1answer
26 views

Categories and tags for custom post types

I'm having a hard time explaining this, so bare with me. Category and tag links for my custom post type aren't working as I expected them to. Instead of getting ...
0
votes
1answer
22 views

Show category post with excerpt text

I want to show a post with post title and post content of 400/550 words with a read more link in my category page. I have already done this, but problem is, my post doesn't display the excerpt as it ...
0
votes
2answers
64 views

Alphabetize all but one category

I have my categories set to sort alphabetically: <?php if (is_category()) { $posts = query_posts($query_string . '&orderby=title&order=asc'); } ?> I want to exclude one ...
1
vote
0answers
34 views

Use category base slug in posts' permalink

The Goal I would like to format my permalinks as follows: for posts: somePrefix/%category%/%postname% for categories: somePrefix/%category% Where somePrefix is the same in both cases. I know ...
0
votes
2answers
51 views

Display a list of subcategories a post belongs to

I have this code: <?php // List subcategories of category '4' $subcategories = get_categories('&child_of=4'); foreach ($subcategories as $subcategory) { echo sprintf(' <a ...
0
votes
1answer
22 views

Post of a specific category - not to be seen in paging previous/next post

i have a specific post category, eg. id=x which is not shown in category list. These posts are password protected and should be visible only to those provided with the link. However current version ...
0
votes
1answer
38 views

List Categories of the Parent Category of the Current Category

So, let's say I have this structure of categories I. Super Cat A i. mini cat a ii. mini cat b iii. mini cat c I. Super Cat B i. mini cat a ii. mini cat b iii. mini cat c This code: <?php ...
0
votes
1answer
41 views

Wordpress Shop and restricting products and categories for some users/groups

I have this webshop that I've built in WordPress, no WooCommerce, no Wp-Commerce or anything like that, but from scratch. The users visiting the site will have to be logged in to view products and ...
0
votes
0answers
31 views

Calling Custom Fields within a category loop?

What I'm trying to do is to display a specific category post listing within a page template, showing only each post's custom fields, which must be pulled and included within the following html. What I ...
0
votes
0answers
11 views

WP_Query using OR arguments e.g. posts in Category OR has Tag [duplicate]

I'm wondering if it's possible to use WP_Query() to filter posts by multiple OR arguments. I'd like to retrieve all posts that are in a category OR have a tag. If this is not possible using ...
0
votes
1answer
54 views

Static pages not working

I have been successfully using a static front page on a theme I am building (locally so can't share URL) without any issues. Suddenly it has stopped working and I can't work out why. I now see a blank ...
0
votes
1answer
17 views

I have a custom post type that I want to query a dynamic category name from a custom meta field

So this is my Query. where category 17 is, I want this to by dynamic based on the page you're on. So I have a custom meta field called city_name but when I just put that in there. it obviously doesnt ...
0
votes
1answer
45 views

browse by category and tags?

I have a custom post type called freebies. This custom post type has its own taxonomy with the "normal" categories from wordpress, (which are child-categories from freebies) and own custom taxonomy ...
0
votes
1answer
40 views

Theme modification for custom category menus

My goal is to have a custom menu in the header based on the category of the post being viewed. I'm setting up a single wordpress site that will contain about a half dozen different categories. ...
0
votes
0answers
28 views

Pass list of categories to JS

I'm trying to pass a list of all the categories to my MixItUp settings in my JS file to show all the items on load. But I can't seem to generate a list of the categories and reliably send them over to ...
0
votes
0answers
20 views

How can I allow people to 'subscribe' to categories?

I would like for people to be able to subscribe to categories and tags, somewhat like Pinterest or Quora where you have to follow a minimum number of categories. After doing a plugin search, I can't ...
0
votes
1answer
25 views

How to show main category related to that post

On my main page I have a few post from two categories, but I only want it to display only one Here is my code <?php /* translators: used between list items, there is a space after the comma */ ...
0
votes
1answer
25 views

Show One Category on Post

How do i go about making the code only show one category? <?php $categories = get_the_category(); foreach($categories as $key => $category) { $url = ...