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
28 views

Programmatically Create Category and sub Category

i create category have name Brand with this code. i have total 3 categories and each have 3 subcategories. how to output 3 category and 3 subcategories for each category? function.php code ...
-2
votes
0answers
26 views

Siloing with wordpress - For professionals only?

want I want to do: I want to change the structure of my website. I have two custom post types(CPT) "car", "bike" and a blog. I am using CPT UI Plugin for the custom post types. But I don't get ...
0
votes
1answer
18 views

store posts_id of category into a varable?

I have ten posts in my query that belong in three categories: cat-a,cat-b,cat-c. I'm looking for a way to store $posts_ids from each category into a variable. Say for example, if three posts are in ...
0
votes
0answers
11 views

Two separate category blog excerpts on static front page

I currently have my main blog set up under a category and another category setup to give the illusion of two sep blogs on WP. The setup I'm trying to achieve is this. Front-page (static) -blog-...
-3
votes
1answer
27 views

How to delete categories in WordPress

I'm trying to delete a category in WordPress but i can't find out how. Thank you!
1
vote
3answers
64 views

Check if loop has any categories?

In my loop, I have ten posts with the following categories (slug): group-a, group-a-first and group-b. The loop/query looks like this: Post (group-a) Post (group-b) Post (group-a-first) What's the ...
0
votes
0answers
10 views

Exclude category that matches custom taxonomy slug

I'm attempting to create a separate list of categories, one list showing "key categories" that is assigned through a custom taxonomy. Then another list showing all categories related to the post ...
3
votes
2answers
40 views

Trash bin for categories

Today I accidently happend to delete my category right after I've noticed there is no trash in categories. I wonder is there any way to include trash bin for it? I've made a little research over a ...
-1
votes
0answers
9 views

display images related to product image (woocommerce plugin) below description in single product page

I have a wordpress site running the wordpress plugin WooCommerce and also I use image category plugin to manage my images. I am trying to display all the images having same category as that of ...
-1
votes
0answers
16 views

Change category link. Lead it to a specific page

How can I change a link of any shop category in functions.php? I have 4 shop categories. To one of them I need change its href-link, it should go to specific shop page. How can I approach this?
-2
votes
0answers
9 views

Showing descriptions in Woocommerce category widget

I'd love to display category descriptions under each category in the product-category widget that comes with Woocommerce. How exactly would I go about doing so? Cheers!
0
votes
0answers
14 views

Run foreach loop again, e.g. when another parent category exists

I've been struggling with my breadcrumbs on a project I'm working on, I finally got the code to work using foreach loops to get the values I wanted and show a category_name and slug if needed. This ...
-4
votes
0answers
15 views

Older and newer pagination

i created a category.php to display latest posts of category 'comics', what i am trying to do is to show older and newer navigation to display older posts or newer posts in the same format. Can anyone ...
1
vote
0answers
14 views

The arrangement of categories always change while posting article

The arrangement of categories always change while posting article. How do I fix the arrangement of categories? Can I give the categories weight? Example categories start with Tech, Sports and ...
0
votes
0answers
14 views

Creating a cross-category search page

I'm working on a page for a legal foundation. They have a "Cases" category for posts related to cases they've covered. Almost all of them also have other categories, for example "Aboriginal Justice". ...
0
votes
0answers
14 views

Adding a title attribute to category without

I'm tring to use (to have a title attribute in the category): <?php foreach($categories as $category){ echo '<a href="'. get_category_link($category->term_id ) .'" title="'. $category-&...
2
votes
1answer
50 views

How do I remove “Uncategorized” from posts with more than 1 category?

So recently I moved a client from Blogger to Wordpress. When the posts imported from blogger, it saved the blogger "labels" as "tags" in Wordpress. Since I'd like to have these as categories instead, ...
1
vote
0answers
16 views

School & class blogs: Categorize with categories or custom posts?

A school is using WP as the presentation frontend. Posts are created to publish news (category news), articles (category articles) and featured content (cat. featured). The school would like to use ...
-2
votes
0answers
14 views

get_categories - how to replicate with WP_Query?

I have a slider on my front page that makes use of WP_Query and there fore uses the_post etc like this: $feat_query = new WP_Query( $args ); if ($feat_query->have_posts()) : while ($feat_query->...
0
votes
2answers
19 views

Keyword search in multiple categories

I've spent a day or so on this now and I'm turning to the community for assistance. Firstly, I am trying to achieve something like this post: Wordpress Multiple Category Search In my theme template,...
0
votes
0answers
16 views

Get array of parent and other child categories based on one child

I'm trying to modify a custom wp_query that's generating related posts. Currently, it's returning other posts in the same category, which is a sub-category. I'd like it to ALSO return posts from the ...
0
votes
1answer
21 views

How do I add Category Body Classes to Admin?

So why are category classes not added to the admin body class with this function? I see the current post ID in page source as part of the complete body class, so the basic function of adding body ...
0
votes
0answers
15 views

How to use $prev_url and $next_url to display posts only out of a specific category

Struggling with a function used to display a previous and next button on a single portfolio page. I have set two pages up with display of a portfolio. Each page displays a portfolio with a unique ...
0
votes
1answer
38 views

Home Page Template - Specific Category

I cannot find a specific solution to my situation. I'm sure this is an easy one though. I have my homepage set to display posts. How can I narrow the posts to a single category? I've looked elsewhere ...
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
59 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
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
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
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 ...
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 $...
-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
1answer
39 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 ...
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
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 ...
-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
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 ...
-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 ...
-1
votes
0answers
22 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
1answer
36 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
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
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
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 ...
0
votes
1answer
27 views

Edit tag_id in category pages of dashboard

When we create a category, WordPress randomly assigns a tag_id for that category. Is it possible to change that ID in the category section? For example I create a category X and it is assigned ...
1
vote
0answers
48 views

Filter $cpt categories to omit certain category

I have 5 categories (with matching slug id's), 'deps', 'duo', 'five piece band' and 'soloist' as part of my 'portfolio' custom post type. I want to display everything but 'deps' on one page, and then ...
0
votes
0answers
39 views

Why is is_archive() working with array when it's not supposed to?

I'm using Genesis with a Knowledge Base plugin that is getting messed up on the category archive pages because I have the theme settings to "display excerpt" instead of "display content". We need the "...
0
votes
0answers
27 views

XML-RPC add category

I am using the following function to make new posts using xml-rpc: function wpPostXMLRPC($title,$body,$category,$keywords='',$encoding='UTF-8') { $rpcurl = 'http://example.net/xmlrpc.php'; $...
0
votes
1answer
38 views

How to Manage and link certain custom taxonomy?

I'm creating some kind of soccer dedicated website.Assuming we created 4 different taxonomies: Teams, Players, Tournaments, Managers. Team includes two different types: National Team Club ...