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
4 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
12 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
6 views

Hide Frontend Video Categories from appearing for Users [on hold]

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 ...
-1
votes
1answer
699 views

query_vars in plugin when using custom permalinks

I am trying to do the following I need to get the category of the current page at the plugin level so before it goes to archive.php orsingle.php so i have a plugin to do this and based upon ...
0
votes
1answer
2k views

How to let users choose posts order in categories?

I'm running a wordpress based website and I need to let the users choose how to show the posts inside categories pages. I would like to have a button inside a category page that can be clicked so the ...
0
votes
1answer
21 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
45 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
1answer
556 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, category-{...
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
26 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
36 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
1answer
21 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
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
22 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
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 ...
0
votes
3answers
6k views

WooCommerce - Display product child categories from specific parent

I want to edit the following piece of code: <?php if ( (!$theretailer_theme_options['category_listing']) || ($theretailer_theme_options['category_listing'] == 0) ) { ?> <!-- Show ...
0
votes
0answers
23 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 ...
1
vote
1answer
5k views

How to display related posts from same category?

Is it possible to display related posts from same category as the current post?
2
votes
1answer
646 views

How to put enctype=“multipart/form-data” in categories form?

I had success putting the code below to include enctype (for images) in custom post type forms, but I'm not able to use it in categories form... is this possible? Thanks. add_action( '...
2
votes
2answers
1k views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
0
votes
1answer
1k views

Show custom menu in category and its posts

I have a category X of posts. The category page and it's individual posts are all part of a custom menu consisting of pages and posts. My submenu, in the sidebar, works fine for showing on the pages, ...
0
votes
0answers
26 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
430 views

Changing Woocommerce categories programatically

for the last two days I am trying to find a solution to this little problem. I want to change the categories of certain products programatically, so far I have this It seems quite logical for example ...
2
votes
1answer
941 views

How to get the depth of a category's subcategories

I'm looking to get the depth a category's subcategories. Suppose I have a category 'grandparent' which has a subcategory 'parent' which in turn has a subcategory 'child'. How do I get to integer 2? ...
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
50 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
463 views

Can't pull posts of a Custom Post Type based on the custom taxonomy of the CPT

My question is about retrieving custom post types via get_posts, when custom post types also have a custom taxonomy. I can use get_posts to retrieve all posts of a custom post type, but when I attempt ...
0
votes
2answers
419 views

Custom loop of a single category, cannot order by date. What am I missing?

I'm going nuts. All I have is a simple loop on the home page of the site (which is a static page), and it should show the most recent (1) post of a certain category. The trouble is no matter what i ...
2
votes
1answer
953 views

How to create category index table out of wordpress site or on other website?

I want to create a page on other part on my website (outside wordpress directory) where I can show list of posts from a specific category. I am looking for exact solution provided by @toscho here: ...
0
votes
1answer
801 views

Related posts widget - category

I want to edit this widget to display related posts from the current category. This code below display only posts from a category that I must select manually. What I want to happen is that the widget ...
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 ...
0
votes
1answer
427 views

“Trying to get property of non-object” error when using custom taxonomies

I am encountering a weird error when working with custom taxonomies. I am trying to get the name of categories of a custom taxonomy: $terms = get_terms('taxonomy_name'); foreach ($terms as $term) { ...
0
votes
1answer
696 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway (...
-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 ...
-1
votes
2answers
431 views

display all posts in current category

I am trying to display all the content/posts assigned to a certain category. I have a custom post type set up called 'Videos' and within this I have created categories called music, commercial, promo ...
0
votes
1answer
30 views

How to display category next to post

I am using a theme that uses the FooGallery plugin to display an image for each category on the homepage. Is there a way to list the category name next to the images? The theme uses: <?php if (...
2
votes
4answers
1k views

How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?

I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
0
votes
1answer
527 views

Hierarchical permalink structure for posts showing categories and sub-categories

I'm having a lot of trouble finding an aswer to this. This is what happens to my permalink structure currently: When I open the page, filtering all posts for a category, the url is: myblog.com/...
0
votes
0answers
15 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
27 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 ...
0
votes
3answers
3k views

Hide post meta data on a specific category

I'm using the Canvas theme from Woothemes, and their framework (obviously.) I built a child theme and have my custom CSS segregated in a custom.css file in that directory. I've made some changes to ...
1
vote
1answer
3k views

ajax for filtering posts by category in wordpress loops

I've been looking around for a way to filter my posts on http://www.waziproject.com/wazimagazine/ without reloading the page. So my question is if anyone can help me out to turn the following into a ...
-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
2answers
660 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 ...
0
votes
1answer
660 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
43 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 ...
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", "...