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

Category page filterable by year and month

One of the requirements for a wordpress site I'm working on is to have a category page that can be filtered by year and month. For example: mysite.com/category/dogs/year/2015/month/02 This will ...
0
votes
1answer
39 views

How to display only posts assigned to a particular, isolated, subcategory

I am trying to set up my wp site where I use posts assigned to categories and subcategories (about 3 levels). I have a list of 1st level categories as my primary menu. When clicked, the intended ...
1
vote
1answer
5k views

Display All Products by Category with WooCommerce

With WooCommerce, I want to display all the categories in a store as headings, with all of their products listed below in an unordered list. Is this possible to do? I've seen a few things that'll let ...
1
vote
1answer
43 views

Create a category list page

I am trying to create a category list page that displays only the category titles with corresponding links. It should not be PHP directly in the page. So how can I include a listing of categories on ...
0
votes
2answers
1k views

Display post from specific category

I'm trying to display posts from specific categories. And I believe I have the correct code: <?php if ( in_category('11') ) { ?> <div class="post"> <h2><a ...
0
votes
2answers
24 views

Combine “category search order” with “don't display child posts”

Each of these bits of code work separately in category.php, but when I use both together, the first one is ignored. Can someone tell me how to combine them into a single piece of code, or at least ...
0
votes
1answer
21 views

How can I modify this code to iterate over an array of categories?

I'm setting up a query for a series of 12 classes that will last a week each. There will be a morning session and an evening session. I'll have two different loops in the template to break those ...
0
votes
0answers
49 views

Define category ID using get_post_meta

I need to define the Category ID in my singles page through custom fields so that i can load a different category depending on the page. This is what i have so far and its not working. Any help would ...
1
vote
2answers
944 views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
0
votes
1answer
50 views

Get archives as array

I'm looking for a way to get the values returned from wp_get_archives as an array, similar to get_categories. I need to do this to modify the post counters to use - [#] instead of (#). See my current ...
1
vote
1answer
85 views

Sticky posts on home page, search, tag and archives without plugin

I have a question today. I am looking for a solution to make sticky post available on my website. But, i just got it work on homepage with the code below. function wpb_latest_sticky() { /* Get all ...
0
votes
1answer
37 views

Sorting Posts by custom field

I'm trying to sort my posts by the custom field artwork_title. When I use the following code, I just end up with one particular category of posts no matter what category archive I'm on. Also ...
0
votes
0answers
11 views

Category Template - to be editable from the backend?

I have different categories that includes posts of the category. I want to add text and images before or after the posts of the categories are displayed on the frontend. I want to solve this via ...
0
votes
0answers
15 views

Unable to uncheck a category in a post

I've created a post and I've checked the 'Jobs' category, but when I save the post, the 'News' category gets automatically checked, as well as the jobs category. It's seemingly impossible stop this ...
0
votes
3answers
84 views

How to add HTML5 'required' attribute to wp_dropdown_categories() without JavaScripts?

I'm using wp_dropdown_categories() for populating <select> field with custom taxonomy terms. If the code is like below: <?php $args = array( 'show_option_none' => __( 'Select one', ...
0
votes
1answer
26 views

Custom filters inside a specific category?

I have different categories that require different filters For example a 'training' can be about a specific bodypart, by a specific athlete,.. What I want is something like this: But different ...
2
votes
3answers
2k views

Display posts from the same category using next/previous post link

I am using this code, but once I click on the next post/previous post link, I am redirected to the next post/ previous post of the different category previous_post_link('%link', 'Prev post in ...
0
votes
1answer
22 views

How to display post in custom file not in archive file?

I create file content-expertises.php and display my category list. Now, When I click one my category name, it is redirect in category.php file not my custom created file like category-expertise.php. ...
2
votes
4answers
6k views

Category links suddenly started giving 404 errors

My Wordpress blog suddenly seems to have started giving me 404 errors when accessing category pages. For example, http://blog.rtwilson.com/category/tok-related/. Interestingly, this doesn't happen for ...
0
votes
2answers
58 views

How to add category and subcategory in WordPress custom code?

I create custom plugin for import categories. now i have categories array from api.but when import categories into my wordpress woo commerce means not working. My code is given below. public ...
0
votes
2answers
31 views

Exclude post category in a blog page

I have two links in "news" where all the news posts goes "blog" where the rest goes just wanted to exclude the category "news" in the blog page I use the code $news = new WP_query ...
2
votes
2answers
6k views

Woocommerce product categories order [closed]

Is it possible to sort product categories? I have a category with a lot of subcategories. On the category page all the subcategories is listed. Right now I can only change the order by drag and drop ...
0
votes
0answers
17 views

Proper way of manipulating a category on your homepage?

I'm using the Genesis theme, and attempting to create a function that finds the homepage AND a specific category, and removes post content under both those conditions. Using my limited knowledge I ...
0
votes
1answer
42 views

403 forbidden on one page only

I can't access http://www.plantea.com.hr/biljke/ The only error i get is Forbidden You don't have permission to access /biljke/ on this server. This is regular hierarchical category for post. I ...
0
votes
1answer
74 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
0answers
12 views

Loop within category's posts

I'm trying to figure this out since a couple of days, and even though it should be a quick and easy thing, I couldn't find any workaround. I've 4 categories, and each of it has between 10 and 40 ...
3
votes
4answers
20k views

Custom Post Types on Category Pages

I'm working with a custom post type that uses the normal WordPress categories. I am able to modify my category template to display my custom post types exactly how I want them. The problem is, once ...
0
votes
1answer
747 views

List child categories from parent category on custom taxonomy page

I making some updates to a theme I'm currently working on. I've moved a bunch of categories that have custom post items under them into a parent category that's all within a custom taxonomy. e.g.: ...
0
votes
1answer
129 views

I need to create a page or post hierarchy

I am currently stuck and I need some advice ASAP. I am making a site for a client on which they need to have a sort of hierarchy like this Carriers (Main Category or page) -Level 1 -Level 2 ...
0
votes
0answers
21 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
425 views

Remove Featured Image from posts in specific category?

I am building a theme that includes the featured image as a navigation feature outside the single post, but once the user gets to the post in category "Specials", I'd like to take that image away. ...
3
votes
5answers
3k views

Remove the category/taxonomy description field?

How can I remove the category/taxonomy description field? The one which shows up on the edit category/taxonomy page.
0
votes
1answer
47 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 ...
9
votes
6answers
26k views

Can I set a default featured image for a category?

I'm setting up a site with a theme that takes advantage of the "featured image" feature of WordPress. Since my end users are not the most tech saavy in the world, I'd like to set things up so that the ...
0
votes
0answers
25 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
2answers
181 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
36 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
18 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
votes
1answer
369 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
3answers
1k views

a-z list, categories and sub categories in loop

I'd like to list my categories in a loop from a-z, the code i currently have just keeps repeating over and over im not sure what the problem is but the format should look something like. Parent ...
1
vote
1answer
26 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
2answers
79 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
11 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
21 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
2answers
41 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
2answers
1k views

multiple categories and breadcrumbs problem

Let me explain my problem. I have this post that uses multiple categories... and categories are being shown as breadcrumbs I there a way where I can display 1 specific tree? example I have game ...
0
votes
0answers
23 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
0answers
18 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
50 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
31 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 ...