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
210 views

Woocommerce slider for related products based on category

I'm using the theme scrollider on a Woocommerce site. I want to display a slider with related products at the top of each category page, before the content. At the moment I've done it manually by ...
0
votes
0answers
11 views

Tags or categories referenced (accessed) via subdomains

Is there an easy way to add subdomain pointing to a particular tag or category in WordPress? So: accessing http://www.blog.com/ or http://blog.com/ would display all posts, http://tag.blog.com/ ...
0
votes
0answers
45 views

categories and sub-categories of posts are wrongly saved in DB

I have a jobs category and under it I've created some sub-categories: Now, when I create a post, sometimes, as seen below, the sub-category name comes before, and sometime after the category itself, ...
0
votes
1answer
39 views

AZ Directory category

Hi i would like to create an A to Z index of category of 3 rows. How would i go about in doing this? Example: ABCDEFG... A title of category started with the letter A B title of category started ...
0
votes
0answers
38 views

Custom list of categories that is sortable by count

So I am attempting to use bootstrap with wordpress. Inside my left column my design called for a large box and then 4 smaller ones below. Those boxes would hold information about a category. There ...
0
votes
1answer
49 views

Display last postings of 5 categories on homepage

i have a question. I want to display on my homepage (template) the last postings of 5 categories as excerpts. Means excerpts from last article of cat.1, last article of cat.2 and so on, so i got then ...
0
votes
0answers
16 views

Pagination custom category page template [duplicate]

I want to display product categories on separated pages. Should be 6 posts of 1 category on a page, and if we have more than 6 postings in this category, - so I want to display a pagination. I googled ...
0
votes
1answer
112 views

Exclude most recent posts from specific category in wp_query()

I have a featured posts slider, which uses the 'featured' tag. I have a query for this which grabs the 3 most recent posts with this tag and shows them in the slider. Below this, I have a list of 10 ...
0
votes
0answers
26 views

How to choose the parent category that shows when using multiple custom categories [duplicate]

When a post is in two or most custom categories, how can I specify the parent category name that I want to show up? An example is the custom post type "tour". It is in the following categories: ...
0
votes
2answers
272 views

Optimal way to redirect home page to category archive?

Question What'd be an optimal way to redirect the home page of a WordPress site to a category archive without involving external factors (e.g. Apache's .htaccess) i.e. within WordPress? Why? (Only ...
1
vote
1answer
92 views

Different menu navigation per category

Hello all you helpful people :) I am using a self modified version of the 2012 theme and I would like to be able to display a different main navigation menu based on the category I am viewing. ...
0
votes
0answers
741 views

How do you remove display of WooCommerce product category on single product page?

On my single product pages, I would like to change the meta data so that the Category button for the product does not display. I can't seem to figure out where this is called. I've looked in various ...
0
votes
2answers
62 views

Change appearance based on category but post is in two main categories

I want to change header and menu based on what category a post is listed in. I could duplicate the post and assigned each of the two categories separately but this sounds messy and bleh. The post/s ...
0
votes
1answer
111 views

How do I query_posts in cat=1 AND not in cat=2

Let's say I have 3 categories, College (cat=1), Corporate (cat=2), and Idea of the Week (cat=3) There is a home page for College and a home page for Corporate. On the College home page, in one ...
0
votes
1answer
110 views

multiple values in an array for category__and does not work with WP_Query

So I'm looping with WP_Query and here is my code: $country_posts = new WP_Query(get_direct_children($continent_cats)); if ($country_posts->have_posts()) : while ($country_posts->have_posts()) ...
0
votes
1answer
58 views

Printing direct descendants of a category with WP_Query

So I'm having trouble printing just the direct children of a category on a page. Here's my code: $category_id = get_cat_ID('destinations'); $args = array('child_of' => $category_id); ...
0
votes
1answer
34 views

Category slug in in loop always the same?

My post category structure is 3-level deep: Products Milk products Milk Chocolate Cheese I want to show all posts from "Milk products" and add appropriate category slug as class, for example ...
0
votes
1answer
121 views

get_terms function not returning anything

This has had me baffled for days so any help would be appreciated. I cannot get the function get_terms to return anything. I've tried the following code in the index.php, single.php and page.php, ...
0
votes
1answer
37 views

How to allow Category Title to use <b> tags?

I'd like to be able to use <b></b> within my Category Title in Wordpress but the admin strips them out. I realise I can make the whole title bold using css but I only want it to apply ...
0
votes
2answers
78 views

Make assigning post to a specific category equivalent to assigning it to all categories

Allow me to explain with an example, for the sake of clarity. Please take the time to read it all to get a good idea of what I am exactly after. On my WordPress site categories are used as Editions ...
0
votes
2answers
95 views

Create Cross Promoting Categories in Wordpress Using 'pre_get_posts'

What am I trying to do? Assign more than 1 category to a post so that it would appear in each category template without 1 main category in the URL. WP's default behavior when you select more than ...
0
votes
1answer
90 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
0answers
58 views

Replace get_the_category() with Hikari permalink

I want to edit my theme I have bought. I'm using the Hikari permalink plugin to set which category I want to have as the default (instead of lowest ID number). Now my theme just uses ...
0
votes
1answer
218 views

Completely disable categories

Is anyone aware of a plugin that disables categories in WP? By this, I mean completely hiding the feature from view automatically, for existing and new users alike. In particular: the WP admin menu ...
0
votes
0answers
24 views

Close access to the category, only for subcategories

I have menu with categories and subcategories. How to get access only to subcategories, not to categories? Tnx
5
votes
1answer
571 views

Can't custom taxonomies have same terms (slugs) as categories?

I knew that it's not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that's the case with custom taxonomies as well. So for instance, if my ...
0
votes
1answer
108 views

Pluck single parent category from get_the_category

I am working on a theme that displays a single category for each post. However to eliminate user error, I would like to pluck a single parent category out of a posts categories. Here is my code as ...
0
votes
2answers
141 views

How to show 5 posts from specific category on related page?

I'm not familiar enough with wordpress to ask the question directly, so please bare with me as I explain what I'm looking for. I have four primary sections of my business (A, B, C & D, for ...
0
votes
1answer
96 views

List all posts of certain category which share some tags

My problem is quite simple: I've got a couple of posts in different categories that have several tags, some of them in common. When I load a post, in my sidebar (using PHP Code) I want to show a ...
0
votes
1answer
34 views

How can I check which archive has referred the single? [closed]

I have a single page that displays one and only one category of the post that is showing. However the post can have more than one category. If the user arrives from a category page I want to show ...
0
votes
0answers
50 views

Hide or redirect the taxonomy/category/tag page

I created a taxonomy brand with two categories: nike and adidas. What I need is to prevent the creation of the page for each category, like www.example.com/brand/nike/ or www.example.com/brand/adidas/ ...
0
votes
0answers
16 views

Unwanted Product Name Appearing Above Category on Main Shop Page

Have just created this shop and still getting used to woocommerce. On the above link, above the category headings and images, are the words "Backsaver – Classic RV Towaid" which is the first item ...
0
votes
0answers
34 views

SKU Customization jigoshop plugin

When a product is published, SKU is randomly created but what I need is, the SKU value should be category-name.defaultskuvalue. All this is done automatically while product is created. How can I ...
0
votes
0answers
93 views

Get product category name in Jigoshop

I am using the Jigoshop plugin and I try to modify single_product.php file as: <?php $pcatname="category-of-current-product" ?> <?php echo do_shortcode('[jigoshop_category per_page="12" ...
-1
votes
1answer
570 views

List only child categories a post is in, of a specific parent category

Either this is harder than it needs to be or I am just not understanding WordPress/PHP very well :( All I want to do is show the child/sub categories of a specific parent category...but only if the ...
0
votes
0answers
46 views

Category/Taxonomy Template not loading

I read countless topics and searched alot of codex pages for that problem but I just don't get it. My category template isn't being loaded. Instead, only the index.php comes up. It doesn't matter if ...
0
votes
1answer
58 views

Search form options group categories

Hello i use this code to allow my readers to filter the search results by targeting a specific category. How can edit it to make 2 options of categories groups? I have 20 categories. I want the ...
0
votes
0answers
64 views

One WP install, I need to map a custom domain name to each category

I've read other answers but they weren't satisfactory. Multiple blogs, different domain names, one install to rule them all Multiple Domain Names - One WP Install (non-Multisite) - Default Each ...
0
votes
0answers
55 views

wp_get_archive for category returning different URLs on different but similar sites

I have this code on two different sites in the sidebar: <ul class="news"> <?php wp_get_archives('cat=2&show_post_count=true'); ?> </ul> and this code in the main content ...
1
vote
2answers
45 views

Querying Term Posts in Loop

I'm trying to show my CPT Category along with any posts associated with it below the title. I have the first loop fine: <?php $cats = get_categories(array('taxonomy' => 'custtax', 'orderby' ...
0
votes
1answer
43 views

Hook into create_category

I'm trying to in some way hook into when a new category is created. What I would like to do is to see the term and slug that was created and log them/email them. I have tried to hook in to ...
0
votes
1answer
38 views

get_category_parents displays an empty category

When I execute '<?php echo get_category_parents(get_query_var('cat'), false, '\' - \''); ?>' on the category page bar, which is a sub category of foo, this is the output: 'foo' - 'bar' - ''. ...
0
votes
1answer
27 views

How to enable admins/editors to set a featured image for specific category?

Well , I know how to set up a featured image for a post . But I want to set up a featured image for categories . So admins/editors can choose a featured image ,like they do for posts . And one ...
0
votes
1answer
74 views

Allow dot in wordpress permalinks (only for categories)

I'm using domain names as category. For instance I have category name google.com But wordpress converts dot with hyphen in permalinks. Can someone tell me how to allow dot in category permalink?
0
votes
1answer
69 views

Custom Page Template Category loop not functioning correctly

So after several attempts to correct this - It seems the pages not load but don't pull in the correct posts from each category. It just seems to pull in the same default posts whenever I click each ...
0
votes
1answer
43 views

Category count but only if category has at least one post

I need to display the number of categories which I can do with this... <?php echo $num_cats = wp_count_terms('category'); ?> ...but I only want it to count categories that have at least one ...
0
votes
0answers
59 views

Filter EVERY category link with my plugin

Im writing a plugin to let users customize the colors of their category links. But in order to make this work, Ive gotta figure out a way to target all category links regardless of theme. So clearly ...
0
votes
1answer
102 views

Displaying different posts Via wp_list_categories()

I believe this problem to be quite simple but can't seem to get my head around how to solve it. So I'm pulling in all the category with posts in using wp_list_categories(); My problem is when I ...
0
votes
1answer
133 views

Most recent post from every category/taxonomy but sorted by date

I am trying to get a list of the most recent post from every category/taxonomy. I have found a solution for this, but I want the overall list to be sorted by post date. At the moment it is sorted by ...
0
votes
1answer
87 views

Showing Subcategory Name/Link Instead of Parent Category

right now this code is showing an article's subcategories if it has one. But it's also showing the parent category too (so both the parent category and child categories show up simultaneously). Is ...