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
vote
1answer
103 views

Connecting Wordpress gallery to custom categories (taxonomy)

I want to use the Wordpress gallery to show all pictures of one category in a gallery (on a fixed page), which I do not have to update all the time by inserting the pictures manually. So I added the ...
0
votes
2answers
29 views
+50

How to query categories with Advanced Custom Fields?

I'm currently using Advanced Custom Fields and I was wondering if anyone know how to filter categories by custom fields? I have a custom field in my categories using the checkboxes field. I want to ...
1
vote
0answers
11 views

Single Product Navigation within Category for WooCommerce

I'm working on a website for a client who would like to have product navigation on each single product page. The navigation will go through each product within the category and when it reaches the ...
3
votes
0answers
24 views

WP 3.9 TinyMCE no longer loads on category description editor

I've used this script below inside functions.php since WP 3.5 It converts the standard category description editor to a rich text editor. Unfortunately, after upgrading sites to WP 3.9, the ...
1
vote
2answers
524 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 ...
-1
votes
1answer
17 views

List posts related to category on a div [on hold]

i want to display posts related to selected category at the same page(on a different div). What i want is as the image attached, when i click the category name on the left side, all related posts must ...
0
votes
1answer
208 views

Bringing Ajax Loading Feature on Category Pages

Following this post -- Showing all the posts in one page? -- I was able to create a tag and category page with all posts. Example: http://blogote.com/apple/ The link contains over 200+ posts. Is ...
2
votes
0answers
18 views

Rewrite category slug

I have some categories like so: /europe/postname /usa/postname For various reasons I would like to rewrite these to be: /news/view/postname I've tried a few re-direct plugins but not had any ...
0
votes
5answers
2k views

Automatically assign posts by author to a specific category

Some of the authors in my blog must always add their posts to a specific category each time they post. Sometimes they forget this so therefore I'm wondering if there are any ways to automatically ...
0
votes
1answer
242 views

query_vars in plugin when using custom permalinks

I am trying to do the following I need to get the category of the current page at the plugin level so before it goes to archive.php orsingle.php so i have a plugin to do this and based upon ...
-1
votes
1answer
15 views

Can't get Category link inside get_posts

I created a simple function to display the latest posts. Inside the function there is a conditional to display the post category. I found that to display the category name, using $category = ...
0
votes
0answers
13 views

List Categories in Custom Order

I'm using this code: <?php wp_list_categories('include=19,20,21,22,23,24&orderby=date&title_li=<h4>' . __('Prices') . '</h2>' ); ?> But it's not displaying categories in ...
0
votes
1answer
20 views

Show Pages in Categories

I created category function by adding this code to functions.php: function page_category() { register_taxonomy_for_object_type('category', 'page'); } // Add to the admin_init hook of your theme ...
0
votes
1answer
20 views

Pages with posts filtered by category

My site has a few categories, such as "business", "techology", "news" etc. I'd like to display the latest posts from most categories on the front-page, except for a few special ones which I can ...
3
votes
2answers
497 views

Category page doesn't use category.php, instead it redirects to homepage

I am currently modifying a theme. This theme doesn't had a category.php I needed a custom category page. So, I made one. It works on my local server, but when I uploaded it to a real server, this page ...
0
votes
1answer
514 views

WooCommerce - show product child category from specific parent

I want to show only the current child categorie of one specific parent categorie. I found this code written by ialocin in this question: WooCommerce - Display product child categories from specific ...
0
votes
1answer
20 views

How to create a sub post?

I'm planning to create a TV Streaming site and I want to know how can I make sub posts under a post? I want to make subposts cause they'll act as a mirror post of the episode this is a structure that ...
-1
votes
0answers
23 views

Custom Post Taxonomy template missing

In my custom post taxonomy, i created more shop categories and added to menu under "shopping". when i click the sub menu [Shop Category], it's going to 404. and the url like Which template file is ...
1
vote
3answers
438 views

How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?

I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
0
votes
1answer
282 views

Checking for two categories in query_posts

How can I check two category_name values in the following query_post? <?php query_posts('category_name=recent-work&posts_per_page=1'); if (have_posts()) : while (have_posts()) : ...
0
votes
0answers
17 views

Only show top level posts of specific category

I've been trying to create a loop that will only show the top level posts no children/sub category posts. Basically what my categories look like are -- -All --one --- A --- B -- ...
1
vote
1answer
35 views

Custom post types and permalink

I’m looking for a way to solve my problem with permalinks in wordpress. I have 3 post types: news (default), posttype1, posttype2 all 3 uses the standard category. I added 3 categories in it: cat1, ...
1
vote
0answers
18 views

Categories filtering in new post

I have a website with post types that have subtitles for movies. That files are on a specific custom post type using http://www.wpdownloadmanager.com/ pro. Because all custom type posts are movies ...
0
votes
1answer
341 views

Show subcategories and hide posts or show posts if not exists subcategories

I'm trying to make a WordPress blog where in the index page only Parents Categories appear. In second page need to appear SubCategories and hide posts, if not exists SubCategories show posts for the ...
0
votes
0answers
9 views

Portfolio category gone from item edit page, Anthology theme [closed]

For some reason the option to assign a category to a portfolio item has disappeared since updating to wordpress 3.8.1. Is there something I can add to portfolio.php to get the option to come back? ...
0
votes
1answer
193 views

How can I add an “ALL CATEGORIES” entry in wp_dropdown_categories?

I want to let the users search posts by categories. So I use wp_dropdown_categories to build a drop-donw list with all categories. Trouble is I want to allow them to set this to "ALL CATEGORIES" as ...
1
vote
1answer
13 views

List all the categories with or without post

I have a simple question! I'm showing the WP categories with this code : wp_dropdown_categories( array ( 'orderby' => 'name', // ID of the already selected category: ...
0
votes
1answer
39 views

Notice: Trying to get property of non-object in : custom fields category

I have custom fields in my category. I'm using this tutorial to add custom fields to my categories. I'm trying to output one of the custom fields on my category.php template but I'm unable to do so. ...
0
votes
1answer
271 views

Display additional form options based on Category selected $categoryId = $_POST['cat']; not working

I have a conditional statement to show certain images to choose from (radio buttons) based on the category chosen, however when the category is chosen, the radio buttons don't show? What am I doing ...
0
votes
1answer
432 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
1answer
25 views

Query seems to be duplicated

I'm just hit a development brick wall and can't seem to find a solution to this problem. I've running two WP_Query's the aim is one displays premium stockists and the other one displays the none ...
0
votes
1answer
135 views

chained drop-down menu for custom taxonomy using chained.js — not quite working

So, Im trying to get a chained select to work to select a state then a city with that state. (2 fields). Here is what Ive got: First my function to create the menu using get_categories(). First ...
0
votes
1answer
46 views

How to show different categories in different pages?

I have this webpage with blog and a page with latest news. Right now both pages are showing the same category. How do I separate them? so that one page show category 1 and the other show category 2? ...
0
votes
1answer
545 views

Filter categories using tags

I have a website with the following categories: Videos Pictures Stories And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc. Is there a way I could filter lets say: Videos ...
1
vote
1answer
19 views

How to query_post custom posts within default taxonomy?

I'm trying to query_post custom posts. It works very good with custom taxonomy, but not with default "category" taxonomy. I tried using "category_name" and "tax_query", but it doesn't work for me. ...
1
vote
1answer
6 views

Get all media categories

I've added a new taxonomy for the medias post type: function register_taxonomy_for_images() { register_taxonomy_for_object_type('category', 'attachment'); } add_action('init', ...
1
vote
0answers
21 views

How to rewrite the post URL according to the category?

I have 1000 posts in my website, half of them are in difference categories and another half is in category called "blog". Current permalink structure is: http://xxxxx.com/articles/%postname% - this is ...
-1
votes
1answer
23 views

Display Categories Assigned to a WooCommerce Product

I am using WooCommerce with SuperStore theme. In meta.php file is this line, echo $product->get_categories( ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', $cat_count, ...
0
votes
1answer
7 views

How do I list categories and the common categories for posts beneath those categories?

I have four categories: 2013 2012 2011 2010 These categories contain posts that are also categorized Cat A Cat B Cat C So basically there's a bunch of posts that are categorized (2013, Cat A), ...
0
votes
1answer
261 views

How to view all posts (on site, not admin) that are uncategorized?

I had a horrible problem a long time ago that had me end up importing a backup of most of my posts. I'm now using WordPress 3.3.2 and I would like to view all of the uncategorized posts from the site ...
-1
votes
2answers
419 views

Choose custom post type template by category

I need to style my portfolio posts with different templates. My thought is that it would be done by category. I have tried using in_category and is_category and a lot of other work around's but to no ...
3
votes
4answers
19k views

How to Display Product specific to a category with WooCommerce Plugin?

I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the ...
0
votes
0answers
18 views

how to paginate subcategories listin archive page

I am using following code to display subcategories in category page. if (is_category()) { $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != "") { ...
1
vote
0answers
26 views

Posts are not showing up on particular category

On my website, post are not showing up when I navigate to http://www.domain.com/category/category-name/ but on wordpress dashboard, I am able to see the actual number of post under that category. ...
0
votes
1answer
306 views

Display category-specific comments in sidebar

I'm trying to display comments in the sidebar from only the current category. So far I've got this: <?php // Posts per page setting $ppp = 8; //get_option('posts_per_page'); // either use ...
3
votes
1answer
360 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
-1
votes
1answer
16 views

how to ask if in two categorys inside if

I'm new two wordpress so sorry in advance if this question might be very basic. Depending on which category a post is, I do some script things and I ask inside the loop in this way: <?php if ...
3
votes
1answer
80 views

In the tag archive - display count of posts for each category they belong to

I will try to be as explicit and short as possible. Suppose I have a site for books. I have three categories named adventure, romance and fantasy. Then, I have a tag called old books. In the top of ...
1
vote
0answers
28 views

How to limit number of attachments

I'm using Sweet Cake theme. As you can see the portfolio section show all pictures. I want when someone load the site to be displayed items of the first category , instead of everything. How can I do ...
0
votes
1answer
431 views

Related posts widget - category

I want edit this widget to display related posts from current category. This code below display only posts from category that I must choose manually. So I want related posts from category ..thanks for ...