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

wp_dropdown_categories initial value

I am currently pulling in an option drop-down of a specific category using: <?php wp_dropdown_categories('child_of=20'); ?> I would like the initial value of the drop-down to say 'Bedrooms' ...
0
votes
1answer
36 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
63 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
87 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
41 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
1answer
39 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
75 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
96 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
187 views

Query Posts with MetaValue & MetaKey & SortOrder works, but it doesn't override category order [closed]

I have a query, ordered correctly by the meta_key in ascending order, but they are devided into groups of their category. This example shows the postorder in the WP category editor: Cat 6 - sub 1 - - ...
0
votes
1answer
28 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 ...
0
votes
1answer
46 views

Can I hide a specific post from latest posts page?

Let's say that I have a post that I only want to be shown in the page of the category that it belongs to. The problem is that this post is also visible in the latest posts page. Is there a way to ...
-1
votes
1answer
222 views

WooCommerce: List All Categories

I'm using the WooCommerce plugin with WordPress and within my theme I'd like to list all categories within a navigation menu with PHP. I've tried using woocommerce_product_categories(); but I don't ...
0
votes
1answer
712 views

Posts URL structure like site.com/category/the-post-title

I'm new with wordpress and I would like to understand better if it's possible to create pages with an url based on the category and then the post title, so: something like ...
0
votes
0answers
48 views

How to remove subcategory permalinks on archive page of customtaxonomy and category?

I display the list of parents-category on the home page. I display the list of subcategories on archive category page. <?php if (is_home()){?> <div class="widgettitle"><h3> ...
0
votes
1answer
352 views

forming WP_Query for posts of all post types but from specific categories

I need to get post from blog, custom post type 1, custom post type 2. custom post type 3 and either from category 1 or category 2 or category 3 or category 4 or category 5 or category 6 or category 7 ...
1
vote
0answers
36 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.. ...
2
votes
1answer
180 views

WP_Query not looking at child category

Hi all I have a loop that shows a post on a single page and puts the first category name in the variable $cat: $cat = $category[0]->cat_name;?> Now after the post I have a link to show ...
1
vote
1answer
59 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
218 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
1answer
75 views

get_categories() for only CPT

On the site that I am working on I have Jobs as a custom post type and Locations as custom taxonomy. The Locations are used by Jobs, Posts, and other CPTs. I am working on a small filter for the ...
0
votes
1answer
40 views

How we add new categories by wp_insert_post

I am using fornt end form submission now i want to add new category and before adding this category i want to check whether it exist or not, if yes then simple add to that category otherwise add new ...
0
votes
3answers
50 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 ...
0
votes
3answers
132 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 ...
4
votes
1answer
3k views

List all subcategories from category

How can I get all subcategories from a certain category?
0
votes
1answer
21 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
24 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
26 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
0answers
35 views

Remove child categories from permalink

I have a custom post type permalink setup which looks like: .../post_type/%category%/%postname%/ The problem is that when I have sub-categories, it adds them in the URL. Instead of: ...
0
votes
0answers
12 views

WordPress MU Sitewide Tags restrict by category

I want to restrict or stop certain categories from being "sent to the "tags" blog. The advice (on another forum and from one of the devs) is as follows (but i cant hack it!) :- "hook into save_post ...
0
votes
1answer
127 views

Multiple Categories Filter

I'm trying to implement a multi-category checkbox filter for search as seen here at http://melandri.net/2011/12/31/multiple-categories-filter-in-wordpress-search/ When I add the first function ...
0
votes
3answers
59 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, ...
0
votes
0answers
28 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
105 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
0answers
39 views

override “cat” parameter using pre_get_posts

There's this query: new WP_Query('post_type=post&posts_per_page=3&orderby=date&cat=10' ); I'm using pre_get_posts hook to modify the query and it's working fine for different parameters ...
0
votes
1answer
43 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
1answer
52 views

Custom loop of a single category, cannot order by date. What am I missing?

I'm going nuts. All I have is a simple loop on the home page of the site (which is a static page), and it should show the most recent (1) post of a certain category. The trouble is no matter what i ...
0
votes
2answers
111 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
34 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
114 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
102 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
123 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
428 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 ...
1
vote
1answer
58 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
38 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
51 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
51 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
959 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
33 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 ...
0
votes
0answers
25 views

How to create a category template for each category hierarchy level?

Is it possible to create a category template for each of the available hierarchy levels? Here's the structure I want to replicate: Product A (level 0) Subproduct A1 (level 1) Subproduct A2 (level ...
2
votes
1answer
40 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 3 4 5 6 7 28