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
1answer
14 views

Precedence of page permalinks over woocommerce product category links?

I have a situation I cannot quite understand, and wonder if someone could help me do so. We are developing an e-commerce store (WP + Woocommerce) Individual artists are represented by Pages (each ...
1
vote
2answers
58 views

Is there a way to list posts of only a certain category

I want to add a new menu point to post that shows posts of a certain category. Adding a new page is easy if it is just a new post type. But I want to only show posts with a specific category and when ...
0
votes
2answers
672 views

Get unique post in parent category

I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the ...
4
votes
1answer
232 views

How to sort posts by last name (2nd word) on ONE category only?

I have an "author" category that is used as a list to browse multiple posts containing author biographies. I have Smart Category Ordering installed and right now it is sorted by title ascending. ...
0
votes
1answer
17 views

Conditional statement: if is_category, append at the end of page

I'm really new to code, so forgive me if the question seems dull. I have set up a very simple WP site its only purpose is to collect content from authors to then export some xml file in order to ...
0
votes
0answers
5 views

Wordpress SEO - Category, page or both?

I've a doubt on which could be the best solution to rank my pages. I'm not sure if I should focus on category pages, or create a proper product page. Example: I've a website that speaks about Samsung....
0
votes
2answers
2k views

Filter categories using tags

I have a website with the following categories: Videos Pictures Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos ...
1
vote
1answer
927 views

Trying to sort and display categories(not posts) by custom field: 'order'

I'm a WordPress rookie. I've added a custom field to my "Category" taxonomy. The custom field is "custom_order" and its purpose is to hold a number so that my categories can be sorted and displayed in ...
0
votes
1answer
27 views

Add new post only in assigned category

Is there any possibility or plugin, that alows me to add a user (example author role) who could add posts but only in one category?
0
votes
1answer
585 views

“Item not updated” when try to change category properties

When I try to change some properties for some categories (in most categories it works without any issues), like category name, or description, I see that it is not updated, and I get an issue "Item ...
0
votes
1answer
682 views

Show 10 Sub Categories Per Parent Category Page?

I have using following code for displaying sub categories in parent category page. Its displaying all subcategories in a single page. I want to display 10 sub categories per page. Please help me to ...
0
votes
0answers
12 views

Twentysixteen theme single post category display

Our site uses the twentysixteen theme and some posts are listed in more than 1 category, eg. Events (parent) & Skateboarding (sub category) Can anyone help me so the single post displays only the ...
2
votes
1answer
1k views

Allow contributors to add categories, but not delete

I used a plugin called "User Role Editor" to allow contributors to add categories, but it also lets them delete categories. Any suggestions?
0
votes
1answer
3k views

Display Categories or Subcategories with name & description in category.php

I have the following issue for my customer. Can some suggest a possible solution to this issue? This website has Categories & Subcategories Cat1 -Subcat1 -Subcat2 -Subcat3 Cat2 -Subcat1 -...
0
votes
1answer
20 views

Echo get_the_category() outside of loop (global?)

Trying to grab get_the_category() within the loop and post to the byline within the header. // file1.php <div> <h1><?php the_title(); ?></h2> <?php echo $...
0
votes
1answer
38 views

Filtering out child category posts from parent category archive not working

In this example cat 5 is the parent category, and 42 is a sub-category. I the main category 5 archive I don't want any posts from sub-category 42 displaying. Why isn't this working? function ...
-1
votes
0answers
26 views

How to add and Save custom field in category box on add or edit post

When the user clicks on Add category link two fields display category name and parent category I want a custom field there on both new or edit post page. Please check the image. Any help will be ...
0
votes
0answers
13 views

Need help understanding get_the_category function parent-child order?

I am unable to understand how WP fills up the array which get_the_category function returns. This is the hierarchy of categories in two cases: Cat 1 > Cat 2 > Cat 3 Cat 1 > Cat 2 In the first case,...
0
votes
1answer
31 views

Category names dependent on each other?

Can someone kindly explain the reason for the following problem? Let's assume you create a category like "sample" for your posts. While editing a post like "Hello World" in Wordpress, you choose both ...
0
votes
1answer
2k views

How to insert category and subcategory using 'wp_insert_post' function?

How would be the array, to insert a post category and subcategory? Thanks.
-1
votes
1answer
49 views

Update wordpress menu with woocommerce products

For aesthetics purposes, i chose to keep the menu from my theme (twentyfifteen). I have a large catalog of products and i use Woocommerce to keep them into categories and products. Everytime I add a ...
0
votes
0answers
20 views

Issue with retrieving taxonomy slug

I am trying to integrate two plugins on wordpress and am extremely frustrated and hope somebody can point out what I am doing incorrectly. I am trying to integrate the mycred plugin which gives users ...
0
votes
1answer
18 views

How to show only the name of one category above each posts in frontpage?

I have set the frontpage in my Wordpress installation to show the latest posts. My theme supports the display of the meta category name above each post. Now the problem is each time I publish a new ...
0
votes
1answer
441 views

Second level subcategory

I'm trying to get anoter level subcategory to show in my select option. I've managed to get one... how can i get the other? <?php $taxonomies = array(CUSTOM_CAT_TYPE); $args = array('...
0
votes
1answer
33 views

Wordpress using get_term to retreive slug not working as expected

Im using the below code to try and get the slug for the current category and the parent category. Ive managed to get as far as getting the currently cat slug but the parent displays in readable text ...
0
votes
1answer
48 views

How to display total views of all posts of one category?

Is there any way to display total views of all posts of one category? How to show that number on archive page? I have used this code to count views of each post: function getPostViews($postID){ $...
0
votes
0answers
14 views

How to rewrite the URL for “WordPress Category Archive”

I am using the WordPress Category Archive plugin. In wp-category-archive.php file $url = get_option('home') . "/?m=" . $year_month_value . "&cat=" . $category_id; I need to change the like ...
0
votes
1answer
769 views

Display selected category on post page

Lets assume that we have a post which belongs to 2 or more categories and we wish to display, on the post page, the selected category through which we reached to the post page. What is the best method?...
0
votes
2answers
567 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 href="&...
0
votes
3answers
2k views

Get id of category from drop down menu

Im trying to get the category ID from wp_dropdown_categories();and then pass the ID into a loop to have it output posts titles from that particular category. I currently have this: <form ...
0
votes
1answer
568 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
1answer
454 views

How to get selected taxonomy or category ID if using custom walker?

I'm building a taxonomy->child taxonomy dropdowns where the child will only be active if the parent is selected. Everything works great, except that I'm using wp_dropdown_categories for the parent ...
3
votes
1answer
1k views

Display all posts from all categories with pagination

Alright, this might be a tricky one to explain but I'll do my best. At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
-2
votes
2answers
58 views

How to show posts of a specific category

I am new with word press and I want to show the post of a specific category on my page. The name of the category which i want to show is home slider. Below is the code which I have used to display all ...
0
votes
1answer
14 views

Tag Menu items based on their categories

Suppose I have a site with this menu-structure: food banana carrot apple lettuce where the fruit-items belong to fruit and the vegetables belongs to vegetable. Now ultimately ...
0
votes
1answer
35 views

Get posts of a custom post type from category from taxonomy?

The theme I'm working with has a custom post type, "portfolio", inside a custom taxonomy, "portfoliocat" (post type and taxonomy definitions here). It is working ok: in the backup menu I can see the "...
0
votes
3answers
4k views

Display only one level subcategory in wordpress

This code uses taxonomy category image plugin to display images for categories. This code display subcategories of main category in parent category page (category.php), But I want to display only one ...
1
vote
1answer
696 views

Collapse subcategories in post edit screen

Is there a plugin to collapse/expand subcategories in the post edit screen? In other words, I'm looking for analog of CMS Tree Page View plugin, but for categories.
-1
votes
0answers
21 views

how to get the child categories of products in the spicial style

I work on themes i get and can't know how to redesign the component to get what i need so i get the HTML of the element i need from the Pagebuilder in the theme and i make some search and find this ...
0
votes
2answers
3k views

How to use wp_category_checklist()?

I've recently discovered that we can insert a dropdown list of categories like this: define( 'WP_USE_THEMES', false ); require( './wp-load.php' ); wp_dropdown_categories( array( 'child_of' ...
7
votes
3answers
26k views

Add custom field to Category

I'd like to Add custom field to Category. I mean when I creat a category I only have Name: Slug: Parent: Description: Since I have a TV Series Site, I want to add some more fields, I want ...
0
votes
2answers
1k views

How to make subcategory for custom post and and display?

I've created a custom post with categories like books, foods, and make some sub-categories like in foods cat, pizza, fastfood. But when I display them in my side bar, it's showing same as sub category....
5
votes
1answer
59 views

Delete a specific category when deleting a user

I'm using the following function to create a portfolio category named "tips_username" when a user registers on my website. add_action('user_register', 'auto_create_traveltip_category'); function ...
0
votes
5answers
869 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
1
vote
3answers
1k views

Hide a certain category name without removing it?

I have a category called feature which I use to have a feature post in the homepage. The problem is I don't want the category name feature to appear in this posts, but I want the other categories to ...
0
votes
1answer
444 views

WP Dropdown Categories, display subcategories but not grandchildren categories?

So my main goal is to create 3 drop-down category options to run a search. It's for a car website, so I have 3 parents, "Make", "Model", and "Year" At the moment I have the following code <?php $...
0
votes
1answer
53 views

Display Posts by Categories

I am currently in the process of developing a Wordpress theme and I am looking to have different pages where I can display posts from different categories. I have a styling and structure I want to ...
0
votes
1answer
2k views

forming WP_Query for posts of all post types but from specific categories

I need to get post from blog, custom post type 1, custom post type 2. custom post type 3 and either from category 1 or category 2 or category 3 or category 4 or category 5 or category 6 or category 7 ...
0
votes
1answer
450 views

Get current_parent_category in a loop or Cat ancestor- big problem

Im having some trouble since a week now . .. I'm having a bad time with that ! I explain my situation: I have setup a style for post category. (a background-color and a small image background). ...
0
votes
0answers
30 views

Implementing custom post type categories / taxonomy? (theme building)

I'm building my own theme for a small business website. This website has a navbar on top, with a dropdown under "Projects", listing several categories. As of now, I have all of these categories listed ...