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
0answers
3 views

WooCommerce - Display List of Categories using [product_categories ids=”0"] not working [on hold]

I am trying to use the shortcode [product_categories ids=”0"] to display a list of subcategories under the parent "Health Conditions" The Health Conditions category has id 703 but no matter what ...
0
votes
0answers
9 views

How showing the pages inside a specific category (without coding a new template)?

I've a Wordpress site where I'm using "posts" for news and "pages" for some static information pages (about, contact, ...). Now I need to add a bunch of pages: one for each product that I sell. Also I ...
0
votes
0answers
5 views

Category not showing up on home static page

in my admin panel- I have added a category "look book". I have added it to my menu, and the category name shows up when writing a new post and I am able to check which category the post belongs to. ...
0
votes
0answers
14 views

Displaying category images as background image

On some of my category pages I use the following code to display a background image. <?php global $post; ?> <?php $src = wp_get_attachment_image_src( ...
0
votes
1answer
13 views

Admin Post List Only Show One Category

I want a user to only be able to view a single category type when clicking "posts" in admin. I've tried messing with list_terms_exclusions, but that only seems to be effecting the category management ...
0
votes
1answer
17 views

Single_cat_title() print the title before text

When I use single_cat_title() get the name of the current category in archive page, it works perfectly but it prints the category title before the text <h2> <?php if ...
0
votes
1answer
16 views

How do I set a specific template for sub-categories?

There's a few posts about getting sub-categories to use the same template as their parent but I want to do something slightly different. I have a category 67, and I want all sub-categories of 67 to ...
0
votes
1answer
15 views

Paginations in Category Page Leads to Sample Pages

I'm having trouble with my WPMU site that I hope you guys can help me with. Anyway, here's the situation. For example, I'm on my site's category page. I clicked the next page, or any other page aside ...
0
votes
1answer
18 views

Custom Post type archives / categories give 404

I have a client that wants a blog, a press section, and a "More Posts" section for feel good, community service type of posts. I used the standard post type for the blog, and everything works fine. I ...
0
votes
1answer
24 views

Why is my sub-category template showing the wrong posts

I've got a problem with a custom category template. Used on sub-categories for a particular parent. For some odd reason it's not showing posts store within it, but instead from a another ...
0
votes
0answers
7 views

Automatic category assignment upon attachment upload

Lets say the media library has the following category [news, events, photo, page, post] Your wordpress also has the above 5 set as post-type. What I want is when 1- Events -> Add New 2- File is ...
0
votes
0answers
6 views

Category metabox with floating categories

I was wondering if is possible to have floating categories in categories metabox. If you have many categories is very complicated find a categories with the whole tree opened. A (+/-) button would be ...
0
votes
1answer
25 views

Get parent categories of custom post type

I'm trying to display all the categories that belong to the custom post type that the user is in. For example this post: http://bit.ly/1ANisxN Is a custom post type that belongs to this page ...
0
votes
0answers
16 views

Query posts by date - category and custom field

I have this scenario: Categories: 23Feb2015, 24Feb2015, 25Feb2015, 26Feb2015......30Jan2099 Every day i add 5-6 posts in to a different category (today posts are in category 26Feb2015, yesterday ...
0
votes
2answers
20 views

Assign category a default post type

This one has been bothering me for a few days now, so I'd really appreciate any help you can give me. Problem overview: I have a plugin which automatically creates a post and assigns the category ...
-1
votes
1answer
17 views

WordPress sub sub category [closed]

I'm using Woocomerce plugin. I need to find a way to do this: On child category page list part of the products under title A, the other under title B. Or: On child category page where I list ...
0
votes
1answer
28 views

Show products in category “Shoes” if they also have category “Men” [on hold]

I want to show products in a category if they are also in another category. I never build a clothing webshop and now the time has came. I was adding base categories when I came to the conclusion: ...
0
votes
1answer
36 views

Allow a user to 'subscribe' to different post categories?

Is there a way for me to have a tickbox on a category archive page that when ticked shows that category's posts on a separate page? I'm working on a system for my work where each user will be able to ...
0
votes
1answer
24 views

How the posts and categories connected each other in wp 4.1.1?

There are no post_category field in table wp_posts in my wp4.1.1 . How the posts and categories connected each other in wp 4.1.1? mysql> show columns from wp_posts; ...
0
votes
1answer
10 views

how to chang preview of list of articles of one category?

I have downloaded wp tempalte demo where I have articles dive into different categories. Each category has its own button in main menu. When I click to show the category, list of its articles are show ...
0
votes
1answer
11 views

show posts found in multiple categories via category_name query string?

I am attempting to allow visitors to filter posts in an archive to show posts that are found in two categories. The code is building the URL as follows: domain/?category_name=slug1+slug2 Previously, ...
0
votes
0answers
20 views

Category to populate dynamically [closed]

Desperately need help for a snippet. I have already included the list of posts as a dropdown list. I just want a way to get the category to which the post has been assigned populate dynamically. I ...
0
votes
0answers
15 views

Category dropdown appears on the selection of post from the post dropdown [closed]

I am using gravity forms to create a form in which I want to make two drop downs. posts categories If the post is selected from the dropdown the category to which it is assigned should ...
0
votes
0answers
8 views

transform default widget_category in accordion

Im trying to transform the original widget category from wordpress as accordion; I can find the files which are: default-widgets.php and category-template.php HOwever my back end skills are quite ...
0
votes
0answers
12 views

How can I have preview of articles divided in categories in one page?

I have now 8 categories and each I will have more than 20 articles (posts). In my homepage I wanna show all categories with 3 newest post in it. When I create new post/article, I wanna automatically ...
0
votes
1answer
24 views

Category Page Custom Layout [closed]

I'm beginner in wordpress. I want to modify category page layout from this : into this : I'm using The7 theme. I have read this Category Templates, but still don't know how to. I have create ...
0
votes
1answer
22 views

Get current_parent_category in a loop or Cat ancestor- big problem

Im having some trouble since a week now . .. I'm having a bad time with that ! I explain my situation: I have setup a style for post category. (a background-color and a small image background). ...
0
votes
0answers
24 views

Creating an archive page listing external data

I am working on a plugin that displays external data, within WordPress. I am attempting to create two pages. A listing/archive page, and a detail page. Example: /cars/ List all cars /cars/abc/ ...
0
votes
2answers
30 views

Admin: Navigation Menus do not show empty categories/taxonomies in the list's search tab

This is referring to the Admin area of Navigation menus It seems the normal behavior for building out Navigation Menus (Appearance>menus) is that when you expose categories or custom taxonomies, that ...
0
votes
0answers
19 views

Theme for a specific subcategory inside multiple categories

In relation with this topic in which I wanted a different theme for categories than for subcategories, now one step further, I want a specific theme for a specific subcategory used in multiple ...
2
votes
0answers
34 views

Rewrite rule page url with category

I have enabled the category box for pages with this: // Add to the admin_init hook of your theme functions.php file add_action( 'admin_init', 'page_categories' ); function page_categories() { // ...
-1
votes
0answers
22 views

Transform Default Categories widget in accordion style

Im trying to trasnform my default categories widget as an accordion style. i can find the code in default-widgets.php from the wp-includes - However my back end skills are quite low - I would like ...
0
votes
0answers
17 views

Assign default category for custom post

I am trying to assign a default category to the custom type posts I am using. I found some threads related to that, but they don't seem to work. I have this code so far function ...
0
votes
1answer
27 views

Add Image Size for one Media Category Only

add_image_size is great, but if I want to create a swatch size for colors/patterns on my site, I don't need the swatch size for all of my other images. Is there any way to apply image size by media ...
0
votes
2answers
14 views

Theme for subcategories

I am working with categories (cities) and subcategories with the same menu (for example: cars, animals, houses). Therefore right now my categories structure looks like this: - London -- cars -- ...
2
votes
1answer
48 views

get_terms name__like list categories according to letter

My categories are basically authors, and I would like to create a function to list them according to their surname. For example I'd like to have something like: E: Heinz Erhardt Albert Einstein ...
0
votes
1answer
60 views

loop mix my child-category and parent-category

i explain the situatio I'm having: I have a blog, which on the homepage, have display the most recent post. For each post category, I have set up one specific color and icon by css. ex: for ...
1
vote
1answer
40 views

Custom post type taxonomy template

I've created a custom post type portfolio and a taxonomy of course. function taxonomies_portfolio() { $labels = array( 'name' => _x( 'Portfolio categories', 'taxonomy ...
0
votes
1answer
36 views

Organizing The Custom Post Type with Taxonomies / Parent Posts

I am trying to make a custom post type called 'Songs'. It will have only two fields being 'Title' & 'Audio File'. I would also be creating a tag taxonomy field called 'Genres' so that admin can ...
1
vote
1answer
20 views

Random post category URL

I'm trying to get a random post URL, only in current category. This is my code, this returns the URL category, :/ <?php $current_cat = get_the_category(); $randomPost = $wpdb->get_var(" ...
2
votes
1answer
39 views

Categories' hierarchy in URL

The posts in the website I'm currently working on have multiple hierarchical categories applied to each of them. For instance: Source - Books -- Moby Dick -- Sherlock Holmes The permalinks are set ...
0
votes
0answers
25 views

Next/Prev category post in same button

i like to put a navigation link in my posts, can you help me? How can do this? http://prntscr.com/64ksjd I've this code but, it show 2 hiperlinks, i want 1 hyperlink: $post_id = $post->ID; ...
0
votes
1answer
26 views

WordPress - List Sub Categories and Sub-Sub Categories, With Posts

I have the following code. It allows me to show sub categories and documents within them. The thing is, a sub category may contain further sub categories. The code below will show documents belonging ...
0
votes
0answers
54 views

Display only children category, then if else, only parents category in a loop

I explain the situation: I have a blog, which has lot of post, some are assign to only some parents category, some only to childrens category, some to both. I'm looking to achieve the following: ...
0
votes
0answers
21 views

Category-Slug.php custom template - no output!

I simply want to output two different categories on two separate pages. I need the two categories to form two rss feeds to Mailchimp, which is fine. I've created two category-categoryname.php files ...
0
votes
0answers
14 views

How to print search results related categories hierarchical?

I'm trying to print search results related categories hierarchical in sidebar area. I did that but my code prints just terms without their parents. Here is my page. I want to print the terms like ...
0
votes
1answer
34 views

Hide a category of posts from main blog, and only show in category view

I would like to hide a post on the main blog page (run on index.php) and have it only show up when the visitor views a particular category. I have tried the following just before the loop: <?php ...
0
votes
0answers
8 views

I changed Category label of category taxonomy on main page… What about paths when choosing a category?

I am using a free wordpress template where I changed the label of Category taxonomy on the left side of the page from "Categories" to "States" (using wp-includes/default-widgets.php). Then, I ...
0
votes
1answer
45 views

Display category title and three latest post inside the category

I am looking for something very similar to this question. However, the answer provided there seems strange to me. I don't know what the arguments posts_per_page=-1 and it seems more like a hack to me ...
0
votes
1answer
27 views

Only list category if it has a custom field image

i've a problem showin a list categories. $args = array( 'orderby' => 'name', 'order' => 'ASC' ); $categories = get_categories($args); foreach($categories as ...