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

Automatic switch categories

I have a question concerning the categories of wordpress . In the event that I had two categories, CAT1 and CAT2 and I wanted to automate switching between them as it should. Let me explain . How ...
0
votes
1answer
35 views

Show posts on front page only

I have a carousel that I want to be posted on the front page only but for some reason the code is not working. The conditional statement <?php if ( is_home() ) : ?> <div ...
0
votes
0answers
13 views

Get link to another taxonomy from a taxonomy list

I'm currently working on a site for an artists directory. I have two custom taxonomies; Artists and Artist Genre which will be tied into a custom post type of artwork. I can get a loop to list out ...
0
votes
0answers
15 views

Category specific year archive list with desired URL

I am trying to make category specific year archive list. I tried wp_get_archives() with type=yearly arg in which I got year lists with links. 2015 2014 ... and its link looked like this... ...
0
votes
0answers
10 views

Getting cat-category_nicename as class only if has_category

I'm currently displaying a class on post items like cat-category_nicename (i.e. cat-press) using the below:- $categories = get_the_category($post->ID); foreach( $categories as $category ) { // ...
1
vote
1answer
14 views

Post count for category and tag

I have this code that counts the result found when a search is made. Here goes the code. <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = ...
0
votes
0answers
17 views

Exclude Product Category From Query [closed]

I have found quite a lot of thread talking about excluding categories from query but most of them are related to general posts, not product categories from WooCommerce. The closest thread to what I'm ...
0
votes
2answers
43 views

list all categories that have a certain word in title

How to list all the categories that have a certain word in title - first word of the category? in category.php so, for example, if I am viewing the category "Green Apples Sells", it will list all the ...
0
votes
1answer
9 views

Displaying saved category checked in a plugin?

I'm trying to display only saved category as checked other is unchecked. I am using a loop but it does not work properly. I create code like this: <tr> ...
0
votes
1answer
14 views

How to grab posts from the most recently created category

I have an interesting problem that I could use some help resolving. I need to know if there is a way to grab posts from the most recently created category in WordPress. My client has a magazine type ...
0
votes
0answers
19 views

How to make post title determine category in wordpress

Is there any way to assign a post automatically to a category depending on the title of the post ! Suppose : Post title - This is a test post I want the post to automitically assign to category ...
0
votes
2answers
24 views

Show parent category if there is no subcategory

I have this code. But when i enter in subcategory which has no own sub, it disappears. I want if has no subs return parent's subs. $category->category_parent and $category->parent aren't returning ...
0
votes
0answers
10 views

Displaying custom taxonomy list on sidebar using URL param as filters

I have a custom post type and 4 custom taxonomies. I would like to show the 4 taxonomies on the sidebar that when a term is clicked, the resulting page will show 3 taxonomies, then 2, then 1, ...
0
votes
1answer
29 views

Getting page/category content to show up in my custom page template

I am trying to get my category page content to show up in my custom page template, it returns everything I call, except for the actual page content when I am testing it. Hope this is somewhat clear :\ ...
0
votes
0answers
13 views

How to display Category name in tag's URL

Iam displaying tag's in my sidebar of blog page now I need to have post category name in tag's url for example we get url like this http://example.com/category/blog/testpost when we click on post ...
-3
votes
0answers
17 views

how to make a random category list with thumbnail [closed]

Can you help me to make or find the plugin to make a random category list with thumbnail like this? Preview: Demo: http://wardhanime.net the thumbnail is not taken from the post but from the ...
-1
votes
0answers
13 views

WordPress Category Labels on Index

I have been looking around wondering how to do this and I see it on a bunch of themes but when I try and do it my self it goes on every post instead of just the post in each category. As you can ...
0
votes
1answer
13 views

Show popular post by category code

How do I show popular post by category code I have add code <?php $popularpost = new WP_Query( array( 'cat'=> 2, 'posts_per_page' => 1, 'meta_key' => ...
-2
votes
1answer
19 views

Excluding Categories from WooCommerce Shop

I followed the documentation on WooCommerce support page for removing categories from the shop page (http://docs.woothemes.com/document/exclude-a-category-from-the-shop-page/), but this doesn't seem ...
1
vote
0answers
38 views

action hooks returning old category instead of new category

With some help I created a WP Action to send an email to the author of a post (custom post type) when the category has been changed. This works ok, except that the function is returning the previous ...
0
votes
1answer
38 views

Add category links?

Hi i’ve been trying to add category links as per the image attached. with categories ‘music’ ‘thoughts’ ‘products’ just below my banner. but i have no idea how to do it. is there a fast way of going ...
0
votes
0answers
19 views

How can I hide post title from Categories menu in side bar?

I hope there is someone who can help me about this. This problem makes me crazy since two days. I added "Categories" widget to my sidebar, I have 3 level categories and the 4th one is blog posts. ...
0
votes
1answer
39 views

I want to create a posts widget and be able to select categories

Can you please tell me how can I create a wordpress posts widget that outputs posts based on a categories selection ( category checkboxes of all the post categories ) This is in my form function: ...
0
votes
2answers
20 views

Query post category & remove any post id

I have category_id=3 and have 10 post in category_id=3 with post_id= 1=>10 How to show list post category_id=3 with no post_id=1,3,5 value as query_posts('cat=3& -p=1,3,5 &showposts=30
0
votes
1answer
54 views

Custom Post Type + Category archive

I have created a WP stack with 3 post types: 1. Post (default) 2. Event 3. Place These 3 post types share the same taxonomy, that being the default WP category, here are some example categories: ...
0
votes
1answer
22 views

Hide a certain category name without removing it?

I have a category called feature which I use to have a feature post in the homepage. The problem is I don't want the category name feature to appear in this posts, but I want the other categories to ...
0
votes
1answer
25 views

list posts from two categories on a page - plugin not working

I've installed this plugin: https://wordpress.org/plugins/list-category-posts/ i've tried using the suggested code to list post which are in 2 categories: [catlist id=64+60] but I don't get ...
2
votes
1answer
45 views

Send an email when custom post type category is changed

This is the first time I've attempted to write an action hook. My CPT has 4 categories. I'm trying to make WP automatically sends an email notification when the category is changed. By change I ...
0
votes
0answers
40 views

WooCommerce Shop Page Category Display with multiple category per product

In my woocommerce store all of my products are organized in two categories. My problem is on the shop page, the category is displayed above the name of each product, but it displays the category that ...
0
votes
0answers
17 views

Show only one of the categories of a post in the breadcrumb?

How does wordpress choose which category to display in the permalink if the post has multiple categories? I'm trying to display only a single category which wordpress included in the permalink ...
0
votes
0answers
52 views

Create multiple sections for all categories and then queries all the posts for each of those categories

I'm trying to find to find a way to create a loop that queries all categories and then the posts under those categories. I am using a custom loop to display my posts and I'd like to have it follow ...
0
votes
1answer
28 views

Get Default Post Category From Settings

I've set a default post category under Settings -> Writing. I've got a front end page that allows user to create their own post. I'm using the following code to display the categories in a drop down: ...
0
votes
1answer
14 views

How can I display a specific number of post in a category via a url

I'm trying to link to a specific category in my blog but limit the number of posts that are listed. I can link to the specific category via "www.example.com/?cat=6" and after looking around the web ...
0
votes
2answers
55 views

Display the latest post from a category in a page

I want to display in page the latest post content from a category. For example, the category foo has the following posts: Hello World Hello Mars Foo bar Considering Foo Bar the latest ...
-1
votes
1answer
38 views

Only show posts belonging to multiple cateogries at same time

For blog post page, I have about 100 posts-categories. If I select 2 or 3 or more categories out of them randomly, for example category A and category B, I hope the blog page can only show posts ...
-1
votes
0answers
16 views

Pagination with Category template gives me 404

I've run into an issue trying to create a pagination for a regular Category template. Odd as it seems, I can get the same snippet working on a Page template. See code below, ( category.php ) ...
0
votes
0answers
32 views

Infinite Scroll or Load More Button to Categories Loop

I have a question that I can't solve and find no solution. I show all categories using a loop like this: <?php $args = array( 'orderby' => 'name', 'hide_empty' => true, 'order' ...
-1
votes
1answer
10 views

How to show video from wp option value?

I am working on category page in admin section providing extra field. and following this code.Here is the link of code :-https://en.bainternet.info/wordpress-category-extra-fields/ I am using two ...
0
votes
0answers
20 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
1answer
26 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
27 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
20 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
21 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
24 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
37 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
14 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
8 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
2answers
50 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
21 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
25 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 ...