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
2answers
12 views

How to display wp_list_categories on div instead of li?

Does anyone know how to display the wp_list_categories() on a div instead of the li? I basically want to wrap main categories and its children in a bootstrap column. $args = array( 'taxonomy' ...
0
votes
1answer
15 views

Hide category name in URL

I have this situation myurl.com/catA leads to main wordpress site, and I need to make that myurl.com/catB should leads to specify wordpress category but without showing it in url like ...
0
votes
0answers
7 views

How to sort search results with a specific category first

I'm using the Zoner theme for Wordpress and would like properties categorized as "featured" to be first on the search/archive page. Is there a way to run the search query twice, such that the first ...
0
votes
2answers
8 views

in_category('category-sluga') returns true for Archive page of Category 'category-slugb'

I've got a Category Archive page with name category-slugb.php. I have a sidebar with some Widget Logic that uses in_category('category-sluga'). What's odd is that on this Category Archive page (i.e. ...
0
votes
0answers
11 views

Wordpress: Trying to echo taxonomy slugs of individual downloads, but limit them to the $atts[category] selected from shortcode from post

Note: I'm a reasonable newcomer to .PHP, starting with this project. I understand the concept of it, but I'm not yet skilled enough to figure out what functions I need to use for something a bit ...
0
votes
2answers
21 views

How to get related category/categories in WordPress archive page

I am using WooCommerce in WordPress. I have few categories of products like these, Example: Product 1 Category (//parent) -- Category 1 -- Category 2 -- Category 3 -- Category 4 Product 2 Category ...
0
votes
0answers
6 views

Looking for a way to turn vimeo videos into separate blog posts with the same category

I am creating a platform that allows users to rate videoclips from vimeo using the WP Postratings plugin. I would like to know if there is a way to turn all videos in a vimeo album into individual ...
0
votes
1answer
17 views

Front end post submissions do not get submitted in the category

If I submit the post after choosing a category the post doesnt get submitted and instead it takes me to the category page i have selected.However if i delete the fieldset "category" and fill the form ...
0
votes
2answers
31 views

Show parent-child relationship for categories in the wordpress admin

How can I show child categories under there parent category in the wordpress admin? On a post the format of the category box would look like this: Category 1 Sub-Category 1.1 Sub-Category 1.2 ...
1
vote
0answers
11 views

Convert non-hierarchical taxonomy to hierarchical after registration

I have a custom taxonomy that was created by WooCommerce (product_tag). I'd like the taxonomy to be hierarchical so it behaves like categories instead of tags. I need to do it after the taxonomy ...
-1
votes
0answers
10 views

How to remove (or replace) add to cart button for products already in the cart (but not only on the product page but on the shop page as well)

I am new in here (this is about woocommerce) Does anyone have an idea of how to disable "ADD TO CART" button on the shop page (and everywhere else) for products that had been already added to cart? I ...
1
vote
2answers
62 views

View the latest created categories

I am creating a section on my site that will display the last five categories created. How could I do that? UPDATE: The code below is what I want, just like to know how to apply in order, if the ...
0
votes
2answers
24 views

Wordpress home page to static page

I work with WP, I defined my front page as my home page. why is my home page empty while my front page shoes all me blog post, and can anyone help me fix it?
0
votes
1answer
13 views

problem with category menu, it doesn't want to show link

I have created a category menu but when it displays in front page it shows just text without link. thats my code: $menuname1 = $lblg_themename1 . 'categorie Menu'; $bpmenulocation1 = 'secondary'; // ...
1
vote
0answers
19 views

How to password protect a category page / not posts?

I have seen this question here but the answer was a plugin ( cat-pass ) that would password protect all the posts under the category. I am looking to password protect the category itself and not ...
0
votes
0answers
12 views

Edit child UL's in Walker_Category

I'm using wp_list_categories to display my categories. The children of a Category get wrapped in a UL with only a class of "children" but I want to add an ID attribute to that UL. Here's how it ...
0
votes
0answers
4 views

custom field suite : relationship filter by category

i'm working on a wordpress site where the Custom field suite plugin is already installed : http://customfieldsuite.com/ The plugin allow the admin to create a relationship field : ...
0
votes
2answers
20 views

Where and when does WordPress invoke routes

One of my URLs for which I'm wanting to create a Category Archive is coming up with a 404 despite having matching routes and, supposedly, matching templates. I'm going through the core WordPress code ...
0
votes
0answers
20 views

query.php - multiple is_category functions

Why does query.php have multiple is_category functions?! E.g. in my version of WordPress (4.x) I have in query.php: line 230: function is_category( $category = '' ) { line 4095: public function ...
0
votes
0answers
12 views

Debugging - is_category()

I'm trying to work out where WordPress decides if a URL is pointing to a Category or not. I've got to this function in query.php public function is_category( $category = '' ) { if ( ...
0
votes
1answer
11 views

New Category - custom taxonomy

When you click on Posts > Category and Add a new Category - is this new Category an example of a custom taxonomy? I had a read of https://codex.wordpress.org/Taxonomies but still didn't make much ...
0
votes
0answers
27 views

Category archives

According to the WordPress docs, to show a Category archive you simply need to create a file with the right file name i.e. category-slug.php category-ID.php category.php archive.php However what ...
-1
votes
0answers
42 views

Show only one subcategory

I am showing for my posts only subcategory, but some posts are in multiple subcategories. But I want to acomplish that each post will shown only one subcategory. For example my post is in 3 ...
0
votes
0answers
6 views

Posts assigned to one category disappear from the main feed

I have a fairly new blog site, www.MagneticPatriot.com. (New means it only has a few dozen posts.) There is a particular category I have on this site, "Web Development," that whenever I assign that ...
-1
votes
1answer
57 views

Remove word “Category” from WooCommerce product page [closed]

I'm trying to remove the word Category from the product page. As far as I know the code that displays that is woocommerce_template_single_meta located into content-single-product.php file: ...
0
votes
0answers
10 views

Linking categories and assigning posts in bulk

I am looking for a way to link categories in such a way, that e.g. if you assign few posts to a category, they will automatically be assigned to another category which is linked to the first one. Here ...
0
votes
0answers
18 views

Manage taxonomy for categories of users just like the native wordpress taxonomy for categories of post

i should realize a post-categories like component for users, exactly I would like to get every functionality that wordpress dispose for hierarchical taxonomies. Focus up about: Admin Case admin ...
-1
votes
0answers
12 views

How to order categories?

I started using Woocommerce today, so I'm new to the plugin. I have created all categories required, and ordered them by drag and drop but the front view shows them in alphabetical order. How can I ...
0
votes
0answers
20 views

Get Meta Value of a parent category

I have a little problem that I cant get my head around to deal with. I use ACF for custom fields and I have specific fields for categories. On each category I assign a color to a custom meta field ...
0
votes
0answers
12 views

Sync Post Categories with Pages while maintaining ancestors

I'm attempting to automatically create post categories and maintain the post category hierarchy so that it mirrors pages that have been created while maintaining the page hierarchy. I have achieved ...
0
votes
1answer
20 views

Category For Pages In WordPress

I need to categorize search result of WordPress, I have done that through adding categories to posts and custom post types. Now, only pages are listing without any category, I think it is possible to ...
0
votes
1answer
19 views

Custom row actions on a specific category

I am wondering if the row actions can be changed for a specific category. Like the Uncategorized category I want no "delete" link. Apparently in class-wp-terms-list-table.php line 336, Wordpress ...
0
votes
0answers
24 views

Best way to change category base permalink

I am trying to change the base url for a posts category to /%category%/%postname%/, I have changed this in the permalinks and it works, but wordpress then ignore all my page links thinking they are ...
0
votes
1answer
12 views

Inserting categories as a hierarchical terms from frontend form

I want to insert or you may say select the pre defined categories in my custom post type from my front end form. i don't know where i am missing any code. Please help me out in this ... Below is my ...
-1
votes
2answers
41 views

Only show sub-category

I have a news system with a thumbnail and a box on it that show the category related to the news, using <?php the_category(', '); ?> This worked fine using only one category for each news, but ...
2
votes
0answers
27 views

How i can let users add notes to my posts

I want let users add notes to my blog post, but i want keep that notes separated from posts, what i mean is some thing like comments. Now i think about adding category to comments. Is it possible when ...
0
votes
0answers
9 views

i need to show category with add subcategory for post

I have catgeory and subcatgeory for my post of level two , i want a dropdown with catgeory and subcategory , i will also need url. I wrote following code which just shows main catgeory. I also need ...
0
votes
1answer
19 views

Display Taxonomies in loop with template args

I want to display the taxonomies within the loop but with customized template. Here is my code: if ( have_posts() ) { while ( have_posts() ) { the_post(); $args = array( ...
0
votes
1answer
43 views

Hide posts belongs to few categories in homepage

Currently I am using all the latest posts are displaying in the homepage settings. But now I need to hide few specific categories to be displayed in the homepage. All the post belongs to those ...
0
votes
0answers
14 views

When categories are nested underneath a parent, should the parent category also be checked?

At some points I have a three deep nested category structure, when posts are assigned to a category that has a parent, should both the parent and child category be ticked? Or just the child? I know ...
0
votes
0answers
20 views

dynamic menu parent and child category

I'm trying to create a dynamic menu listing all my category and subcategory.. from that im having 2 problems: first one: it display only the category and subcategory being populated by some post, iw ...
0
votes
0answers
16 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
26 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
40 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
20 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 ...
1
vote
1answer
59 views

Get posts from specific taxonomy term

I have nhl news website and I have taxonomy for each season (ex 2014-15) Taxonomy in functions: function wptp_register_taxonomy() { register_taxonomy( 'season', 'post', array( ...
0
votes
0answers
21 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
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
21 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
15 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 ...