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)

-1
votes
0answers
8 views

How do I add tags to categories?

Can I add tags to my categories? For example, my category is "Funny Video" and I'd like to tag it with "movies", "cartoon", or "animation". Is this possible? I'd also want tagged posts to display on ...
0
votes
0answers
5 views

Sub Categories Keep Redirecting to Pages With Same Slugs

What I want to do is have a news category with two sub categories (property-registration and property-revitalization). Going to /news works fine. However going to /news/property-registration or ...
0
votes
0answers
10 views

Custom display post query by categories

I have like 50k posts in wp_posts and they not belong to any categories. Now i want to add another ~3k posts and i want to add them to a category so i can query and display them apart from the first ...
0
votes
0answers
12 views

Cherry Framework Categorys not working on custom post type

I am using the Cherry Framework. In a child theme i have added a new custom post type and set it to use the built in category and post-tag taxonomies. I have added this to my theme.ini in my child ...
0
votes
0answers
9 views

Create Nested Categories On Import

WP all import trying to import data with multiple nested categories and paths. <id> A|A Sub|A Sub Sub|A Sub Sub Sub A|A Sub|AB Sub Sub|AB Sub Sub Sub A|A Sub|AC Sub Sub|AC Sub Sub Sub ...
0
votes
1answer
15 views

foreach,having wp_query inside, breaks after showing one result

I am trying to make category tabs that show posts from selected category tab. I have tried it my way but m getting only one post for each category, whereas it should return all post in that category. ...
1
vote
1answer
32 views

Does WordPress Offer a Way to Find All of the Categories that Don't Have Children?

Background As discussed in Is There a Difference Between Taxonomies and Categories, taxonomies refer to a generalized system of classification and organization of objects or data. In the case of ...
0
votes
0answers
11 views

Sticky wp_dropdown_categories on Front End Form

I have built a front end posting form and I am trying to make the entire form sticky. I have used wp_dropdown_categories but I can not seem to figure out how to make it remember the selection if there ...
-1
votes
0answers
8 views

How to change view of category product woocommerce to listview [on hold]

when i click a page of category product, the category in grid view. how to change that to list view ? sorry for my spech engglish.
0
votes
0answers
19 views

Page to show custom posts and one category

I want to show all my custom posts and category ID=15 in a page. I managed to call my custom posts as follows: $type = 'my_custom_posts'; $args=array( 'post_type' => $type, ...
0
votes
1answer
21 views

Add code to header based on category for specific posts?

Hello all! I'm trying to add as you'll see in the image attached a small huffington post icon and accompanying text to some posts on my blog. I'd like to set up a category "Huffington Post" and when ...
0
votes
0answers
12 views

Category Link to Post

I have a website with categories X, Y, Z...with the Search Everything plugin I can search based on the category name to return all the posts within a given category. I have the search results posts ...
0
votes
0answers
13 views

Combined Category+Tag Archive Page

I am currently developing a music blog. I am using Wordpress categories for the artists and the Wordpress tags for featured artists. I want to combine the archive pages for artists and features into ...
0
votes
0answers
13 views

Category name from custom fields

I have a problem with getting category name. I was trying a few versions of code and I don't have any idea how to run it correctly. I have custom field (field type - taxonomy-category/ ...
0
votes
0answers
12 views

Category and tags goes 404

I made a custom theme for a website and I'm having some trouble with the category and tag pages, since they redirect to pages with the same slug or to 404 (when there is no pages). On my website I ...
0
votes
1answer
17 views

Widget to add an different image to sidebar (by category)

I want to add custom content (maybe using a widget) on my website's sidebar that changes by category. For example, if a user lands on the 'Cars' category, I want to show an image related to cars. In ...
0
votes
2answers
22 views

Show all sub categories?

Is it possible to show all child/sub categories of all parent cats? I have the following hierarchy: Parent Cat/Tax -- Sub 1 -- Sub 2 Parent Cat/Tax 2 -- Sub 1 -- Sub 2 I would like to be able to ...
5
votes
2answers
332 views

Is There a Difference Between Taxonomies and Categories?

I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in ...
1
vote
2answers
24 views

Easy Digital Download Sub category

I'm curretnly developing my web store using the Easy digital downalod plugin. Now my problem is that i'd like to show only the list of a subcategory and i can't seem to find a way to do so. I ran ...
4
votes
1answer
85 views

Inject post (from specific category) between posts in Loop

I would like to add a post (from specific category) between posts in the WordPress Loop (such as 'Sponsors'). Example: P P P S P P S P P S P P How can I achieve this? I am a beginner with coding, so ...
0
votes
1answer
56 views

Custom post types category

I have created a theme with a custom post type called 'project' and there is a problem. I want to show 5 different custom post type categories on a page in different portions, like posts to show on ...
1
vote
2answers
51 views

Can a Child Category Have More than One Parent?

I'm looking at the get_categories() function in the WordPress codex to see how I can return all of the children of each "root parent" ( categories that have no parents ). For example, if I am ...
0
votes
1answer
11 views

ID of last created category

How to get ID of last created category? I tried use this to for loop, which displays the posts in category boxes.
0
votes
1answer
24 views

Page that links to category content

I have a page called: fruit...then I have three child pages called cherry, lemon, and peach. I also have a category called fruit, and three child categories called cherry, lemon, and peach. What I am ...
0
votes
0answers
22 views

Display related posts with same category or same tag return blank

I'm trying to display 4 related posted in the same category or have the same tag with the current post on the single post page. The result is just blank. <?php $rCateogry = ...
0
votes
1answer
34 views

Pagination on category page with custom post types

Wordpress is not new for me but I am really stuck on this piece of code that I can not get to work properly. I register a custom post type News and let the custom post type use the Wordpress ...
0
votes
1answer
20 views

Wordpress Categories from Plugin

I've got the Owl Carousel plugin installed, inside of it I can create some categories. Now I'd like to have these Owl Carousel categories displayed on the site, not the regular categories. What you ...
0
votes
2answers
19 views

Get posts from 2 or more categories

I'm trying to get posts from 2 or more categories, so far I discovered: $args = array( 'category__in'=>array( implode(ot_get_option("beautiful_categories"), ",") ) ); $query = new WP_Query( ...
0
votes
1answer
14 views

Display a category name automatically using code in the functions.php file

Any idea how I could edit this code to show a post's category title instead of the post's time? At the moment it adds This post is in 12.34pm to the top of the post content. function ...
0
votes
0answers
21 views

Yearly category archive pagination broken

I found code that will show posts by category and year, but then the pagination doesn’t work. The default WP widget “Category Archive" also has broken pagination and, in any case, I need to add the ...
-1
votes
1answer
13 views

Save post to category with gravity forms (post_data) [closed]

I'm trying to save my posts, generated with gravity forms, to a specific category. However whatever I try, it's not working. The post must be saved to sepecific category, dependent from a gravity ...
0
votes
0answers
23 views

woocommerce show parent categories in new order email [closed]

I am trying to display all parent categories of product in the email generated after payment. The first step is to get list of categories in the email-order-items.php in woocommerce templates folder. ...
0
votes
1answer
34 views

Have posts that belong to multiple categories, exclude some categories from homepage

So I have categories A, B, C and D. And also categories 1, 2, 3 and 4. I have posts that can belong to any four of these categories. But I want to exclude anything in categories B, 4 and D from the ...
-1
votes
0answers
15 views

Add the Category Slug to a class in a link array [duplicate]

I am using the Microkids Related Posts Plugin and I want to add the Category Slug into a class in the link. This is so that I can use the Category Slug as a unique global identifier which I can target ...
0
votes
1answer
17 views

Output categories in something different than a list

I wanted to output all my categories in the sidebar of my wordpress theme. Now I use the function wp_list_categories(); which works fine. However it always displays the categories in a list and I ...
0
votes
0answers
36 views

Menu Subcategories Structure Messed up with WooCommerce Catergories [closed]

This is hard to explain. I just moved over from another shopping cart using cart2cart. So this is new WP Woocommerce store. In Products>Categories everything is fine and set up the way it should be, ...
0
votes
1answer
19 views

Category nicename inside loop in wordpress

How can I echo the current post's category nicename inside main loop. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> echo <div class="btn category-nicename"> ...
0
votes
2answers
50 views

How to get all unique categories for posts in loop?

I'm looking to get a plain list of the unique categories in a custom loop (only categories for the posts in the loop). I've been fumbling with some code for a bit and here's what I've got: <?php ...
0
votes
1answer
38 views

Get latest post from all categories except one

I trying to get all the latest post from every category, but I discovered I must ignore one of them. I don't want to show it at all. My problem is I don't know what syntax to write ifelse in this ...
0
votes
1answer
40 views

Show only first children level of current category?

I wish to display only first level of subcategories on current category page (if any). I tried this code: <?php $args=array( 'child_of' => $cat-id, ...
-1
votes
1answer
37 views

Exclude posts from certain category breaks custom pagination

I want to show only posts from certain categories so that I exclude them in my WP_Query() query. Doing this my custom pagination is not working correctly. Clicking on each one of the number in the ...
0
votes
1answer
19 views

Removing categories, Comments etc from posts?

im wondering if there is a way to completely remove this feature from my website as i have no need to categorise any of my posts - i plan to post projects in pages from my left sidebar with a static ...
0
votes
0answers
10 views

Subdomain for main category, directories for subcategories

I explain clearly what I want to achieve : I have here Main category : Car -Sub-category : Sports-Car --Sub-category : Porsche ---Post : Porsche-911-Turbo.html I want URL to be this : ...
0
votes
1answer
19 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 ...
-2
votes
0answers
21 views

display a string of all category childrens in the the current post

This is my code $parent_id is the current post category id foreach((get_categories('child_of=' . $parent_id .'')) as $categoryy) { if($categoryy->parent ==$parent_id){ echo ...
0
votes
0answers
41 views

wp_dropdown_categories not returning value

Update * After enabling Debug, I receive the following error: Notice: Undefined property: stdClass::$id in /home/buffalot/public_html/beta/wp-includes/category-template.php on line 1096 I have the ...
3
votes
1answer
58 views

How to add classes to images based on their categories?

I need to be able to: 1.) assign categories to images and 2.) add classes to all images that correspond to their assigned categories. I was able to add categories to images with the following: ...
0
votes
1answer
41 views

Custom taxonomy template for categories

I have just been reading up alot about custom taxonomy template files, I have a category within a custom taxonomy that needs its own template. I understand about the template heirarchy etc.. and seen ...
0
votes
1answer
45 views

How to add metabox for post of specific category

I want to add Metabox for the posts of category=18 and i am using the following code but unable to do so . So please help me out-> add_action('admin_init','my_meta_init'); function my_meta_init() { ...
1
vote
0answers
41 views

Divide Loop Into Days & Categories

If you could help, I'd greatly appreciate it, because I'm halfway there, but I'm currently stuck! The site I'm working on needs to have it's posts, within the loop, divided up by days, and then under ...