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)

0
votes
0answers
6 views

Post count is wrong in all categories on backend and frontend

Admin area is showing wrong post count for all the categories (and I have 300+) It's showing more posts than they actually are, even for new categories with no posts at all shows like 5 or more. I ...
0
votes
1answer
16 views

Is it possible to query the result of a query?

I'm not sure if the is even possible, and couldn't find an answer, so I figured I'd ask on here. Basically I want to know if it is possible to query a query result? What I want to do is query for ...
1
vote
0answers
26 views

How to query all posts of a specific category, and any other category combination

Basically, I'm looking to query all post of category 'news', and any combination of other categories to display as Related News on single content type pages. So, if someone writes a post, and ...
0
votes
0answers
11 views

one category template for diferent <option> values and sub categories

I have the default category.php template and my categories structure is like this: category sub1 sub2 sub3 sub4 sub5 Now what I want is on each subcategory to add ...
0
votes
0answers
16 views

Change widget: categories to tags

I have a theme with a widget that displays posts from a category. How can I change it to tags? This is the code: /** * Plugin Name: Middle Buzz Widget */ add_action( 'widgets_init', ...
0
votes
0answers
9 views

DW Q&A questions to be posted on multiple pages sorted by their category

I have installed this awesome plugin DW Q&A which makes one of my pages very much like stack. I sit possible with this plugin to post questions and answers onto a separate page sorted by the ...
0
votes
0answers
11 views

Create a Page Automatically According to the post

scenerio : i Am publishing 3 Posts 1. Part 1 for Automobile 1 2. part 2 for Automobile 1 3. Part 1 for Automobile 2 Also im selecting Automobile as a Taxonomy. So now the category page for ...
0
votes
0answers
14 views

Pagination not working for custom category template and custom permalinks

I am using following code in category-20.php, for the pagination through ajax, which is working fine for the defaults permalinks. But when i change the permalinks to custom, then pagination doesn't ...
0
votes
0answers
9 views

Filtering multiple categories using data-filter

the website I am working on uses the following to filter categories:<?php $terms = get_terms('animals'); $count = count($terms); echo '<li><a ...
0
votes
0answers
16 views

WP 4.3 - Categories doesn't show on the menu at all on different accounts

I'm having an issue where the Categories Taxonomy is showing on one admin account but is not showing on another admin account with the same accessibilities/privileges. What could prevent it from ...
0
votes
1answer
47 views

Related posts with WP_Query

I'm stuck with the related posts querying. I need the related posts to be displayed with any depth from the main parent. I have the following structure categories on my website: - Category level 1 -- ...
0
votes
1answer
11 views

Custom post type URL - filter by taxonomy

Created CPT = news uses default categories (IT and recruitment) I am struggling to view an archive of the posts based on their category mysite/news/ - shows all posts for that CPT whatever the ...
0
votes
2answers
17 views

Question on using custom structures for categories

Im trying to create a topics "section" similar to what Justin Tadlock has on his site but i'm not sure how he is doing this. Categories? Tags? or what? I tried changing the Category base to topics as ...
0
votes
0answers
34 views

How to sort category by custom field value

I am using the following : $catargs = array( 'meta_key'=> 'category_custom_order', 'orderby' => 'meta_value_num', 'order'=> 'ASC', ); but I can get the ...
0
votes
0answers
5 views

Page URL that is the same as other but in a different category

Is there anyway to prevent a duplicate post getting assigned a number as it's title despite being in a different category? www.example.com/coca-cola/diet www.example.com/pepsi/diet-2 Both are ...
0
votes
1answer
24 views

How to add current custom taxonomy slug to body class

My theme uses custom taxonomy called "kbsection" and there are lots of sections set up (instead of categories). There is also a custom post type and the posts are assigned to sections. I need to ...
0
votes
1answer
25 views

Getting Category Children

i have a problem understanding the get_terms function All i want is getting all the children of specific category so that it can be listed. But i don't really know how the $args works. So with this ...
-1
votes
0answers
10 views

How to add more drop down menu tab like link, post and product category in my theame drop down menu are limited?

Please help me... I'm going to open an eCommerce site. In my wordpress theme I am unable to add more than 41 drop down menu in my site including sub tab or category
0
votes
1answer
13 views

Show all child categories associated to post ID within loop

I'm looping through all posts and I'm trying to output the category nicename related to each post. So if there are categories A,B and C with post X only associated with categories A and C then I only ...
0
votes
0answers
25 views

How to query and group posts by category?

/* * Loop through Categories and Display Posts within */ $post_type = 'post'; // Get all the taxonomies for this post type $taxonomies = get_object_taxonomies( array( ...
0
votes
1answer
26 views

Using tax_query to get single post per category

I have a list of magazines I need to categorize and sort. I have created a custom post type and registered a custom taxonomy to organize them. Category Structure: Print Magazines (parent category) ...
0
votes
0answers
15 views

Taxonomy terms by post type and category?

I'm trying to return the terms of a taxonomy that is used by a custom post type in a specific category, I can return all the terms of the taxonomy but I want just the ones used by that post type and ...
0
votes
0answers
22 views

How to display 4 nested category levels

I have a scenario in which I want to display this category structure: First Level Grade 1 (Just showing category) Grade 2 (Just showing category) Grade 3 (Just showing category) Second Level ...
0
votes
2answers
21 views

How to display category list with category description

I have five categories for a custom post type, additionally I have installed a plugin to enable upload image to each category detail, actually I can get show list of categories with details. I need to ...
0
votes
1answer
22 views

'get_previous_post' in same category returning (!empty) when no previous post in category exists

I'm trying to use the Smarter Navigation plugin to work so that when I click on an individual post from the category page, the single post navigation only goes to the next post in the same category. I ...
0
votes
0answers
19 views

Get Pagination For List of Wordpress Categories

I'm trying to display a set number of categories on a custom page template. The Categories contains featured image and link to their children. I'm using "Categories Images" plugin to get Category ...
0
votes
0answers
12 views

custom script category in a menu not showing

I have a custom script to create a menu and a category everytime a user register for multisite. Below is the code where I create a menu and category. switch_to_blog($id); $_nav_menu_selected_id = ...
0
votes
0answers
19 views

Hide specific categories from category widget

I'm trying to hide a large amount of categories from my category widget. I've tried a few plugins but none of them seem to want to let me use the dropdown option. I looked into the ...
-1
votes
0answers
18 views

Sort Products by Product Category Order as defined in Admin panel

I've done a lot of searching without any success. Trying to order the products page into a nested subcategories using WooCommerce. I've had some success by using the code below to set the ordering to ...
0
votes
1answer
20 views

How to make all post in to a category?

I need to make all current posts to a category called "Past Posts". I could not find a way to do it. I have 250+ posts. So I can't do it manually.
1
vote
2answers
108 views

Echo one category as title when post has multiple categories?

UPDATED QUESTION to be CLEARER Here's my situation: Wordpress top navigation has several menu items that jump to an array of posts within a specific category. For example, if you click "necklaces" ...
0
votes
0answers
7 views

New notion of custom posts subset

I want to create an image voting site. As a user I want to: Create a "Poll" that belongs to some category (custom wizard process) Post an image to any "Poll", mine and thine (limit of 1 post per ...
0
votes
3answers
34 views

get_posts - require all categories

From the get_posts docs I see it takes categories as a parameter. However, is this an AND or an OR? i.e. if you specify 2 categories do posts have to be in both to be returned? If not, how do you ...
0
votes
0answers
14 views

Force to select a category when creating post [duplicate]

I just wanna put condition, when user is creating a post, the post won't create until choosing a specific category. How can I force user to select a category while posting a new post.
0
votes
1answer
26 views

Offline Wordpress Application

I have to Document some Work and i thought to use WP as a platform to work with others. We have articles, pictures in different categoried and could use the tag function. A Search function is ...
0
votes
0answers
26 views

Have the same sub-category and slug for two different parent categories?

Just want to make sure: I have category 1, with subcategory 'resources'. Can I have category 2 also with a 'resources' subcategory? I would like the slug to be the same in both categories.
0
votes
0answers
15 views

Getting specified level all categories

How get all categories(in object format) by specifying required level. For example: We have Cat1 => Cat1-1 Cat1-2 => Cat1-2-1 => Cat1-3-1 Cat1-2-2 Cat1-3 ...
0
votes
1answer
21 views

Create query for both custom post type and category

I have a custom post type called articles and have category = news I want to make a query from the two parts to get content from (cpt=articles, category=news) in the same query? How can I achieve ...
0
votes
0answers
30 views

Correct url for categories

In WP 4.2 project I added taxonomy using register_taxonomy function like $labels = array( 'name'=> _x( 'Category Artists&Songs', 'Taxonomy General Name', 'artists_songs' ...
0
votes
1answer
29 views

Is it possible to create an alias/custom taxonomy for a category name?

I have a 190 categories - 2 parents, 2 children each, each of those has 2 children, and each of those has between 10-20 bottom level categories. The problem I've run into is that this is an apps ...
0
votes
0answers
14 views

How to get a single archive page to display my various custom post types respective terms?

Is there a way to make a single archive show the respective terms/categories of multiple custom post types ? So far i have been able to make use of a single archive.php to display my various custom ...
0
votes
1answer
13 views

In a shared site, how to get products in a category from one site to another?

Our wordpress site(s) is actually 2 in 1. That is, while they are separate host URLs on the same domain, same server, they run from the same set of wp code, but different databases. They are not ...
0
votes
1answer
84 views

How to display two random-post sections that are each under their own category

<?php get_header(); ?> <div id="containerHOME"> <div id="left-div"> <!--Begin Sidebar--> <div id="left-inside"> <?php if (get_option('earthlytouch_featured') == ...
-1
votes
0answers
24 views

get_category($ID) is returning null

I have the following code: $ID = get_the_id(); echo $ID; $cat = get_category($ID); var_dump($cat); The id is echoed correctly but $cat is logged as NULL. I've also tried: $cat = get_category($ID, ...
0
votes
0answers
11 views

Custom post taxonomy

How can i add category name field for other language for custom post taxonomy?Here are only one field for English.
-1
votes
0answers
26 views

Warning: Invalid argument supplied for foreach() on category selector

This is for users to select a category for their post on the front end. It has been working but I noticed in the source code if you inspect element on any category in the drop down you see Warning: ...
-1
votes
0answers
15 views

How change one of category page?

I have a little problem with Wordpress customizations. I want to change one of Category Page (for example this is category with ID=2). All modifications I have in content-category2.php file (this is ...
0
votes
1answer
32 views

make categories editor unchangeble for my post_type

In WP 4.2 project I added new post_type using register_post_type function and taxonomy using register_taxonomy function and 2 categories using wp_insert_category function. That all works for me ok, ...
1
vote
1answer
50 views

Creating a category page by alphabet

i'm new to wordpress, and i don't know how to code. I would like to make a page where all my animes are sorted by alphabet, like in this image I've heard about the wp_list_category function, so i ...
0
votes
2answers
28 views

404 error when i try to search by category or by tag

I have following problem. When I try to search by tag or by category, I have 404 error. It means that when URL is like "domain.com/category/smt/" or "domain.com/tag/smt/", I have the error. I tried ...