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
2answers
42 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
13 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
22 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
47 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
12 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
27 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
0answers
7 views

Hide Frontend Video Categories from appearing for Users [closed]

I want to hide the categories from the frontend because I don't want users to upload their videos anywhere, I want to choose just one specific category to let them upload to it but I don't know how to ...
0
votes
1answer
26 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
47 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
38 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 ...
0
votes
0answers
15 views

I wanted to create a new category tab, that displays when opened, content only related to this tab

I need to create a new tab that displays content related only to this tab. Here is the code i found but i am not sure how to proceed from this point. Currently, there are 3 tabs with 3 different ...
0
votes
1answer
23 views

WP_Query Custom Post Type if Category ID Equals

I've setup a custom post type "slides" and I've created two categories for the slides custom post type: "slides-testimonial" (id = 7) and "slides-regular" (id=8). I would like to run a single loop, ...
0
votes
1answer
22 views

Custom Woocommerce Category view

I'm kind of new to wordpress development and I'm trying to make a plugin so I can show all the categories I have in a list. The Idea is to customise the default view Instead of the default list: I ...
0
votes
0answers
24 views

Wordpress Pagination archive/category [duplicate]

I have a problem with creating a simple pagination for the categories with WP_Query. I've got it to work for the archive, but if I try the same on the category template, then I get redirected to the ...
0
votes
0answers
27 views

Pre_Get_Posts: You can not group by tags in posts within a category?

With pre_get_posts you can group posts within a category: Example: Movies Category: tag Comedy Comedy Post 1 Comedy Post 2 Comedy Post 3 tag Action Action Post 1 Action Post 2 Action Post 3 And ...
0
votes
1answer
21 views

How can I ask to an existing category?

I want to echo the child category name. That works. But how can I ask after an existing category, so that I have no <h6>-tag when I have no category? Where is my mistake? <?php $...
5
votes
2answers
51 views

Checklist of selected categories

On my blog I have a large number of categories >500, so I need to have some kind of checklist which categories are already selected to continue selecting. For example, if we have cat1, cat2, cat3......
0
votes
1answer
15 views

Parent and child relation code and display only first child list

for Indoor -for bedroom --TFL ---8u ---9u --MFL ---10u ---11u -for Kitchen --ABC ---4u ---5u --XYZ ---6u ---7u These are the category listing... when user click on the for bedroom at that time show ...
-2
votes
1answer
46 views

Fetch all categories from database

My Android project needs to fetch the database every day. I have a category structure like: console tablet camera phone laptop other The structure of the WordPress database is very confusing. I ...
0
votes
0answers
11 views

List titles returned on Archive page in right widget

Hopefully someone can help with this! I currently use the TOC+ plugin to create tables of content in my right widget, which works great for posts and pages. However, for dynamic content in my ...
0
votes
0answers
16 views

Categories box not showing on post edit pages

for some reason I don't get the Categories meta box on my standard 'post' edit pages in the wp admin. It shows up on my custom post types, and they show up in the 'Quick Edit' view on the Posts list ...
0
votes
0answers
29 views

How to add an “All” category to the tag cloud?

I'm using the tag cloud widget in my sidebar that displays my categories and would like to include an "All" link at the top. Any ideas how to accomplish this? Note, I would like to keep using the tag ...
-4
votes
0answers
27 views

Category Post as Homepage

I have several post categories and I would like to only make on of those categories my homepage. An example would be I have three categories with the following url structure mysite/category/cat1 ...
0
votes
1answer
22 views

How can I generate a list of post-type specific categories?

I'm trying to generate a full list of post categories with links based on post type. So, let's say I'm on an archive page for the custom post type "reports" - when I click on a category link (for ...
0
votes
0answers
47 views

How do i get category name dynamically?

I have a page category.php. but i have more category for pages then i want display all the related category pages in category.php page. how can i change category_name dynamically when user click ...
0
votes
0answers
9 views

Category related tags

Is there any work around for relating tags to specific categories? Not been able to find one. I have a range of tags which only belong to certain categories. These tags are used in an advanced search ...
0
votes
1answer
40 views

How To Add and Display Category Image

I have created a WordPress plugin to create a widget area to display category names (total nmbr of post) and description.Now I want to show the category image just after the category name and after ...
4
votes
2answers
159 views

Exclude certain category from latest updates

I am creating a website. There is a column for latest updates. This is the code that i have now. I don't really good in php coding. Would like to get guidance from someone. <?php $postslist = ...
0
votes
1answer
50 views

How to not display subcategories in Recent Posts widget area?

I'm relatively new to Wordpress, and coding in general. I am trying to edit theme-specific recent posts widget to display only posts within a certain category. Currently, the theme will display recent ...
0
votes
1answer
21 views

Need to adjust condition to say if I'm pulling categories from a post, to pull only the first one

I have a condition to pull posts based on category so when in my single.php users can see related posts based on categories, but the problem here is if someone posts a post with more than one category,...
0
votes
1answer
107 views

How to get primary category name in Wordpress new version

There is a new feature in wordpress introducing primary category. When you select a category, primary category can be specified. My question is how can I get that primary category name using ...
-1
votes
2answers
52 views

Filter posts by category

How can I get posts from a specific category on a custom category page? The below code gets the posts from all categories but I can't find a way to filter according to a specific category. Can ...
3
votes
2answers
104 views

Sort posts by tags in category pages

I would like to sort posts by tags in category and archive pages. (Unfortunately there isn’t an orderby parameter for tags. That would make things so easy!) So a category page would be like this: ...
-2
votes
1answer
26 views

Listing category and its posts one by one

I want to show all category and its posts as below in a page, for a dynamic website. Please help -category a -post a1 -post a2 -post a3 -category b -post b1 -post b2 -post b3
0
votes
0answers
17 views

How to include both parent category and child category in permalinks?

I use the permalink structure /%category%/%postname%/. I have assigned one parent category and one child category to all my posts, but my permalinks only include the parent category. I want the child ...
1
vote
2answers
23 views

How to retain the values from dropdown category lists after wrong form submission?

I can't figure out the the code for - How to retain the values from dropdown category lists after wrong form submission? Any suggesstions, thanx in advance. <select class="selectpicker btn-block" ...
0
votes
1answer
32 views

How to exclude a category name from showing?

So I'm trying this code: <?php global $post; $my_query = new WP_Query('showposts=8&category_name=featured'); while ($my_query->have_posts()): $my_query->the_post(); $...
0
votes
1answer
52 views

How to display product product with two condition, category and brand?

I made a simple loop to display product base from category and brand (custom taxonomy.) Here piece of my loop: <?php $args = array( 'post_type' => 'product', 'posts_per_page' => ...
1
vote
1answer
31 views

Add tag parameter to category.php

I want to give users the ability to refine their results in the category section. Like if the user is in the "car" category section in there he can then refine the "search" by color, number of wheels, ...
2
votes
2answers
29 views

How to Add 'Post Categories' to the Dashboard Sidebar

I'm currently working with a company to make a few basic tweeks to their WordPress site and I noticed that they have this on their sidebar: I am looking particularly at the "Clients", "Offers", "...
0
votes
0answers
11 views

Linking Page, Posts & Category together

I want to create a page named Works with the built-in template called Project Listing. And have to make individual posts in the page Works. However, I am not able to do it. Though I can create the ...
3
votes
1answer
26 views

How to order category.php loop by 'meta_value'?

So I have a basic loop on category.php that displays all posts from the specific category, like this: <?php if (have_posts()) : while(have_posts()): the_post(); ?> <a href="<?php ...
0
votes
1answer
15 views

Question About Messing With Category Pages and Descriptions

For a long time I was trying to figure out how to add category descriptions to not only the top of the category pages, but also to the bottom as well. There seemed to be no solution to this (absent me ...
0
votes
1answer
49 views

How to get post with slug and exclude categories

I want to do a query to get posts with a slug and category__not_in. Here's what I do: $query = array( "name" => "test", "category__not_in" => array( 15 ) ); query_posts( $query ); ...
0
votes
1answer
32 views

Add custom field to attachments in a specific category

I have a working function that adds a meta field to all attachments (so I can enter the url of a video). I would like this field to populate only on attachments in the "video" category. I've tried ...
4
votes
2answers
117 views

Load custom posts with same tag as page

I'm using this plugin to add tags for a page: http://wordpress.org/extend/plugins/post-tags-and-categories-for-pages/ And I've added tags support for the custom post: function codex_custom_init() { ...
0
votes
0answers
22 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 ...
1
vote
0answers
13 views

How to list categories within tags?

I'm currently working on an ecommerce site with WooCommerce. I'm using product categories for product types (e.g. cards, DVD's), and product tags for topics/themes (e.g. Christmas, children). What I'...