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
1answer
85 views

How to get the post of category

I have created the 2 categories. And these two categories have child category, how can i get the post of the category when I clicked on the category title. Please guide me
-1
votes
1answer
601 views

WooCommerce Product Search Error

I wanted to display product category,in product catalog on my WooCommerce site.I asked another question earlier to make this code working.I added this code on my content-product.php file. ...
0
votes
1answer
437 views

wordpress category.php query for featured news item, broken pagination and repeating posts

I am having a few issues with a site I am building, on the news page It has 1 featured post from the news category and then under that more news category posts, but missing out the featured news item ...
0
votes
1answer
60 views

Display categories and their IDs

Could anyone please tell me the code to display parent categories and their children along with their IDs? I'd like to, for example, print them in this way: Europe, United Kingdom, London (Europe is ...
0
votes
1answer
662 views

Posts of specific category on page and excluded from index.htm

hope things are going well. I'm trying to create a member's only section specific for posts of about job opportunities. My goal is to have posts of this category displayed on this page and excluded ...
0
votes
1answer
650 views

How to display product categories and number of sales on WooCommerce

I am currently working on a WooCommerce site.I managed to set it up,do some configuration according to my plan.Now i want to display product categories alongside each products in product catalog,and ...
0
votes
1answer
304 views

Logic for Nearby places with post and categories

I'm developing a website which has states as categories and posts as cities. What we are trying to do is identify each post (city) and also show nearby cities to the current city. As of now we are ...
1
vote
0answers
91 views

Creating Category Specific menus

I have a question.. I am trying for this since many days.. but didn't get success. My requirement is say I have 5 categories: cat1, cat2 cat3 cat4 cat5 Now each of category has 'N' number of posts.. ...
1
vote
1answer
118 views

Category pie diagram meta box in post editing page

I am trying to build a plugin for showing a pie diagram based on the number of those categories which have maximum posts. This diagram is a meta box in post editing page. Here is my source of ...
0
votes
1answer
486 views

Widgets: Show Recent Posts Only if the Posts Have Both Categories X and Y

I've been trying to create a Recent Post widget where it only show/display posts that have both categories X and Y (or more). The categories X and Y is user-defined, so I'm planning to make it look ...
0
votes
3answers
117 views

Am I mixing up the concept of posts pages and categories?

I'm planning on having workshops on this layout: I have several workshops: Meditation has 2 or 3, Reikki has 2 and Feng Shui has a couple. So as I read the codex about pages and categories I get ...
1
vote
3answers
2k views

How to filter posts by format and category via url?

I figured out I can filter posts by format just by doing /type/{format} e.g. /type/gallery/ in the url. Looking for a way to filter by categories on top of this, something like ...
0
votes
1answer
112 views

Display one category and its suncategories

I am using this code to filter posts. How can I modify to display only one category and its subcategories. Not all categories. <form action="<?php bloginfo('url'); ?>/" method="get"> ...
0
votes
1answer
36 views

output only if within a combination of two cats

What Im looking to do is look if on one page out put posts that have 2 cats selected (they must have both selected to be shown, not just one cat) if (is_page(15) || $post->post_parent=="15") { ...
1
vote
2answers
151 views

Categories sorting

I'm using code below to spit out custom post types along with its categories, so Category 1 ---post 1 ---post 2 Category 2 ---post 1 ---post 2 ---post 3 etc. That works well for ...
0
votes
3answers
489 views

how to “not” display new posts with a specific category on the main page?

I've read this and this but I'm just a basic user. I have a "technical" blog that more and more people visit. I'm a freelance, and now, when someone hears about me, he/she wants to search for me, ...
1
vote
0answers
58 views

display sub categories assoccited with each post in a category archive page

i have wordpress blog with many posts. each posts associated with many categories and sub categories. i want to display sub categories assoccited with each post in a category archive page. for ...
0
votes
2answers
231 views

Two columns in homepage each with one category

I modifying a wordpress template to be left with two columns on the main page with the following structure: The first 4 are of a category and the last 4 of another The index code is: ...
0
votes
1answer
243 views

One color to category link depending on category ID

I would like to style a category link depending on its ID, for instance, if the category ID is 2, then I want the link to be pink. I cannot find a way to do the same thing to links. What type of ...
0
votes
2answers
1k views

Add multiple orderby with pre get posts

I am already using a small code to set default sort orderby a custom field called "Year" I need to add another orderby to also sort by "Post Title" in the same sort. Sort = Year-Customfield (DESC) ...
0
votes
1answer
132 views

How to differentiate the homepage structure from the category page structure in WordPress template?

I am very news in WordPress world and I am finding some difficulties with creation of a personal template. I want implement a blog like this one (that is using WordPress): ...
0
votes
1answer
633 views

WP the_posts() on single-cars.php get category link

I have a custom post type called cars. There is a taxonomy brands. I have a template single-cars.php and I'd like to add a link to the brand page(The category). Assume I'm on the page of the post ...
0
votes
1answer
207 views

Panoramica Theme Portfolio

I am using panoramica theme for my WordPress website. I want to show the portfolio with category "Meet the team" along with other post category in one page. How can it be possible. Now I am able to ...
1
vote
1answer
404 views

Style category link depending on category ID

I want to style a link depending on its ID, for instance, if the category ID is 2, then I want the link to be pink. My theme calls the category like this: <?php if (in_array('categories', ...
0
votes
2answers
1k views

How would I increase the Author Role to be able to add a new category?

How do I increase Author Role permissions to be able to add Categories? Other solutions welcome. We just need guest authors to be able to add categories while ensuring there is not already a existing ...
3
votes
1answer
3k views

How to get the url to tag & category base set by the user?

I'm searching for half an hour now on how to get the url/permalink base in Wordpress (the 'category' and 'tag' value set in the backend). Could you please point me in the right direction? I want to ...
0
votes
1answer
84 views

How do I rename a category in the menu bar only?

I'm surprised this hasn't been asked before, but I couldn't find it via search. I'd like to do: Full Category Name -> Text in Menu Bar Exercise Tips -> Tips Reviews of Exercise Equipment -> ...
1
vote
2answers
528 views

get all sub categories without specify any category

I have 2 levels of categories ( one sub-category only. No sub-sub category ). I need to get all sub categories without parent category. (I don't want to specify any parent category.) Example: p_cat1 ...
2
votes
1answer
176 views

Category page only displaying the posts from a custom type

Situation I have two cpt: Projects Works In these two CPT I share the same taxonomy 'Category', and the same terms: Architecture Landscape Interior Design I have URLs like ...
0
votes
1answer
1k views

Using a rich text editor for category description?

is it possible in Wordpress to have the category description use a rich text editor rather than a standard text area? If so any idea how to make it use one? Thanks!
0
votes
1answer
95 views

Page that 'subscribes' to multiple categories

I'm creating a website where I need to 'subscribe' client Pages to certain categories. For example: On example.com/client/johnson-co/ show all posts in the categories 'GST', 'Estate' and 'Tax ...
2
votes
1answer
66 views

Category vs Tag vs Table

I have a site that will hold roughly 1000 posts/articles from an in-house magazine dealing with Australian naval history. The articles cover a range of subjects (such as Aviation, Intelligence, Ship ...
1
vote
1answer
17k views

List all custom post type posts from a given category?

I have a custom post type myposttype and it's taxonomy is called myposttype_categories. myposttype_categories have multiple terms inside, such as foo and bar. The tricky question is - how do I list ...
0
votes
1answer
2k views

Allow user to set custom order to a list of custom taxonomies?

I have a custom category checkbox on each individual bio attorney page that shows what practice areas these attorneys are involved in. Currently I have them sorting alphabetically. I am wondering if ...
0
votes
2answers
1k views

How to customize the Categories meta box to allow only one category?

I'm trying to customize the Categories meta-box when adding a post. I have added a custom post and I need the administrator to post a new post without the ability to use the top level categories ...
1
vote
1answer
2k views

Add classname to the_category() function?

is it possible to use add_filter or something similar to add the slug of the category as classname to the the_category() function? Right now when using the_category() the output looks like this … ...
0
votes
1answer
570 views

Redirect single article permalink to paginated category page

Is it possible to redirect from a permalink (a single article) to that same post in a relevant category page, which might be paginated? So when people visit http://domain/post_number they get ...
0
votes
1answer
173 views

Wordpress a template for subcategories fo a given category, but not for root category

I've found this simple yet elegant solution for make Wordpress using the same template category on every child and grandchild categories http://stackoverflow.com/a/3117202/391929 Full code: ...
0
votes
1answer
881 views

Separate categories parents, childs and grandchilds in dropdowns

I'm new to wordpress and PHP Im trying to build a site that the user can select a destination so I did this by creating categories (country) subcategories (state) sub sub category (city) and I want to ...
4
votes
3answers
8k views

How to display regular posts & custom post types that fall under a category using just the generic category template?

1) My site has posts, and 2 custom post types (news & essays) 2) They all share normal categories like sports & health (no custom taxanomy involved) 3) Using the generic category.php template, ...
0
votes
3answers
196 views

Show only one category in main query, issues on tag page

I altered the following code from Ashfame: add_action('pre_get_posts', 'block_cat_query' ); function block_cat_query() { global $wp_query; if( is_home() || is_search() || is_tag() ) { ...
0
votes
1answer
158 views

go to home page when i select default in select-box

I'm new for WordPress. I'm using following code, <div id="cat_list"> <?php wp_dropdown_categories(array('show_option_all' => 'Categories') ); ?> </div> And my JavaScript ...
0
votes
2answers
230 views

Finding the category id's on category intersection pages

I'm using category intersection pages for users to be able to filter posts by categories. E.g. http://freemapsalgarve.com/category/destinations/alvor+bars-pubs/ Here the user is filtering on the ...
0
votes
2answers
199 views

Assign a list of categories with a parent category

I imported hundreds of locations and other categories. Now I have a list of locations in categories to which I would like to assign the "Location" category as its parent. I have tried sql but the ...
1
vote
1answer
166 views

Display list of categories filtered by date?

I have a sidebar on our intranet which lists, hierarchically, posts by category. Such as: -- HR ---Events ----Picnic However, this list has gotten long, and some categories are no longer even ...
1
vote
3answers
277 views

How to limit displayed posts on wordpress

How would I edit the following code, so that only 2 of the posts are echoed instead of 3 <?php global $more; $more = false; # some wordpress wtf logic ...
0
votes
1answer
470 views

new WP_Query issues

My default wordpress set hold 10 posts per page. In category.php , I want to override this with 999 post per page, the problem is that isn't working at all. When I use the following code. it ...
0
votes
1answer
42 views

categories of custom post type shows in CMS but not in the frontend webpage

I have created a custom post type "Events" and added the categories function for it. However, the categories only shows in the backend CMS which I can set and add new categories, but no message ...
3
votes
1answer
861 views

How to set up sub-categories for author pages?

I am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc). I know that ...
0
votes
1answer
43 views

Problem with menu categories doubling up when updating database?

I imported a database from a website to my localhost and the menu categories started doubling up. The wordpress dashboard is also missing my custom post types. How can I solve this?