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

Automatically add category to a child custom post type

I have created 3 custom post types, using wp-types plugin and Cred front editor plugin: 1. Listino (pl.Listini) 2. Negozio (pl. Negozi) 3. Consegna-listino (pl. Consegna-listini) Post types #3 are ...
0
votes
0answers
28 views

Pagination issue when category is set via function.php

I can get wordpress to show only one category of posts on the homepage via either the function.php file with the following php code... function my_post_queries( $query ) { if ($query->is_home() &...
0
votes
1answer
108 views

Automatic category for a Custom Post Type

I've created two new CPTs called 'Movie Reviews' and "Game Reviews". In my website I also have one category called 'Reviews' where you can find two sub-categories: 'Movie Reviews' and 'Game Reviews'. ...
1
vote
1answer
112 views

Add “page-a” slug to category link if user visit category link from “page-a”

I have Area pages like below: http://www.example.com/area1 http://www.example.com/area2 On each area page common wp menus are displaying categories. To illustrate: Menu Items: -> ...
0
votes
0answers
15 views

Is using categories for site structure a bad solution

I've been thinking about a current site structure implementation that relies on categories to build out the menu structure and the category template to render site content. As categories can change ...
0
votes
0answers
22 views

How to neatly list categories on a page

How would I go about and get something like this? All I find is how to list it with wp_list_categories ('orderby=name&amp&show_count=1&title_li='):
0
votes
0answers
21 views

Tab within category page

I've a website where I use categories in my menu, so to display the posts for each category in one specific place that corresponds to the category itself. Here is the page As you see, each item/...
0
votes
1answer
94 views

the_content() not showing full posts in category template

i want to show the full posts in category archive page, i put the_content() in the category template (content.php) <article id="post-<?php the_ID(); ?>" <?php post_class( 'entry' ); ?>&...
1
vote
1answer
188 views

Count posts in category including child categories

I have found this code somewhere, it counts posts but only which are under specific category. I would appreciate if someone could expand this so it would count all posts which also belong to its child ...
0
votes
1answer
126 views

Need to echo category id in multi-dimensional array

I have custom post types and categories created with the Types plugin. I have category images allowed/created with the Categories Images plugin. I have a loop that displays the posts of a category ...
0
votes
0answers
43 views

Hiding a specific category name on template pages

I have a specific category "Featured" whose category link I don't want associated with posts on the front end. I still want all other category links to show up, and I don't want the posts marked as "...
0
votes
0answers
11 views

Slug uniqueness for an ecommerce with categories [duplicate]

I come to you because I have a problem and i'm looking either for a solution to it, or alternatives. I've spent all day long trying to find a way to make it work. Let me explain. (Quick recap) ...
0
votes
0answers
23 views

Different templates for categories without plugins [duplicate]

Is it possible to show category pages using custom page templates without plugins? I want to give the administrator the ability to add new categories and select templates. Something like this: ...
1
vote
1answer
34 views

Display categories with child category separated by letter

I'm trying to show both the parent and child categories of my custom post type separated by the first letter of the category What I have. A. Apples B. Bananas C. Coconuts What I want A. ...
0
votes
0answers
48 views

Multiple level category and sub-category drop-down

I need to get all parent categories only in drop-down, And only child categories of all parent categories in my site. I try now to get all parent category and its work good : <?php ...
1
vote
1answer
44 views

Change the_content() in Theme Thirteen

I worked with site created on Theme Thirteen and theme uses <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?> to get post ...
0
votes
2answers
158 views

Show archives by year from just one category

yesterday @jas helped to how to show archive by years in my nav. It works fine, but there is the second one little problem. The @jas's solution filter me posts from all categories by year, I'd need ...
0
votes
2answers
42 views

Redirecting category link to first child post

I am trying to redirect the category link to the first child post. I am using following code in category.php. This redirects, but link doesn't go to first child post. How can I redirect to the first ...
0
votes
1answer
40 views

Custom post type and category permalinks

I would like the URL structure of my site to be like this: http://localhost/testwp/books/education/my-title-book I am using the WP Types plugin and I have created a custom post type, books, and a ...
0
votes
1answer
310 views

Get the child category ID of current category

I am trying to get the category ID of the child (no grand children) of the current category. Using below method: $category = get_category(get_query_var( 'cat' )); // get category ID $catid = $...
0
votes
0answers
18 views

Getting Post Tags From Certain Categories

The site I am working on has about 4 different post categories. I need to output a list (unordered) of tags in that category so that a user can click on them and see posts in THAT category tagged with ...
0
votes
0answers
75 views

Only display the subcategory posts in the category page

I have worked with WordPress for a few years and never encountered such case where I need to display posts published under the sub categories of the parent category without parent's post or grand ...
0
votes
0answers
11 views

display post category in rss?

i'm trying to make appear the post category in my rss feed . . . . at the moment with <?php the_category_rss('rss2') ?> I am having the tags . . . . Ive been trying to play around with ...
0
votes
0answers
68 views

Display custom posts under category and sub-category

I want to display all posts under child, Sub Child 1 and 2. Let's say we have 3 posts, 2 of them are under Sub Child 1 and last one is under Sub Child 2. I only want the 2 posts that are under Sub ...
0
votes
1answer
52 views

Exclude sub sub categories from displaying in the archive page

I have the following category structure: Category x >> Category x Sub >> Category x Sub Sub In my index.php file, I have created links to category x and so on. So when the user ...
0
votes
2answers
62 views

Dynamically creating content on custom URL without getting 404

My goal is to have this link structure: mypage.com/item/subitem/code Code are 6 random letters and numbers. I tried with having category and subcategory, but I dislike that because then i have to ...
0
votes
2answers
190 views

How do I display Category titles on a WP Page?

I am trying to get a list of my Wordpress categories to display on a Page, but haven't cracked this yet. So far, I have been able to create a custom category page (category-categoryname.php), to ...
0
votes
1answer
48 views

How to let the user create a selection of categories via the backend

Consider this: I've got a custom post type 'portfolio' these posts, or "portfolio items" all have several categories such as: "photography", "concepting", "branding" , "clientA" , "clientB" etc. Now ...
1
vote
1answer
26 views

Inserting Category programmatically

I am wondering how should i insert the category programmatically and it should insert only 1 time after the theme is activated. I know up to here. function example_insert_category() { ...
0
votes
2answers
55 views

How to define multi categories posts number

My args array: $args = array ( 'cat' => '1,3,7', 'posts_per_page' => '30' ); How to define posts_per_page: category 1 : 7 posts, category 3 : 10 posts, category 7 : 13 posts,
0
votes
1answer
201 views

Order Taxonomy Term by date created

Trying to get the order of my custom query to display by Date created. Is this even possible with this query? Can you do a custom order? thanks for the help <?php $faq_cat_terms = get_terms( 'faq-...
0
votes
0answers
73 views

Too many categories drastically slow down my website

I'm building a WordPress website that needs something like 7.000 categories. I added them, but now I have very long loading times. Pages need something like 30-40 seconds to load completely, and I'm ...
0
votes
2answers
226 views

ACF Gallery with Media Categories - how do display categories and sort

I would like to use something to filter images within an ACF Gallery. I have added the Enhanced Media Gallery Plugin which will allow me to assign a category to each image, but am not not clear on how ...
0
votes
1answer
370 views

WooCommerce duplicate sub categories and product slugs

I'm building a website that allows you to hire or buy a product. I've set up the following product categories in WooCommerce: Hire Buy Is it possible to have the same sub-category slug under each ...
1
vote
1answer
659 views

How can I select a primary category?

I'm looking for a plugin or suggestion on how to select a primary/main (custom taxonomy) term in a custom post type. For example, I'm developing a Wordpress website for Musicians. I have a custom ...
7
votes
2answers
131 views

How can I create a category landing page followed by pages of posts?

I'm trying to create a category template in my theme that will display static content if the user is on the first page of the archive, and then display the posts in the category on the following pages....
0
votes
1answer
140 views

Redirect category to url with /category

I'm want to redirect every category page to to URL prepended by /category. For example; I want /blog redirecting to /category/blog Why? For some reason /blog gives to same result as /category/blog, ...
0
votes
1answer
25 views

How to get posts by category and by choosing a taxonomy term?

I'm new to Wordpress and I've managed to build most of a full custom theme for wordpress on my own. But the tricky stuff is starting to show its tail, and I've spent the last days stuck on Taxonomies....
0
votes
1answer
198 views

Is it possible to remove <ul><li> from default category widget?

I´m having some difficulty override to default category widgets in my wordpress theme. I created the theme from scratch. I want to remove the <ul><li></li></ul> from ...
0
votes
0answers
35 views

passing category name from category.php to single.php

It's the first time I used WP. I just use a small portion of it, because I already had my website ready. So the only section that uses WP is the blog section. I finally was able to implement it has ...
0
votes
1answer
75 views

Dropdown Categories used in form shows no results when all is selected

I'm using the wp_dropdown_categories twice in a search form, once for the categories and second for a custom taxonomy. When selecting the 'All" option no results are showing in the results page. The ...
0
votes
1answer
127 views

How to get posts from many categories using WP_Query

I'm trying to get posts from multiple specific categories. This is my code: $myquery= new WP_Query( array( 'posts_per_page'=>7, 'cat' => array(5,3,7), ) ); It isn't working - what am I ...
0
votes
2answers
259 views

Display tags from specific category in select fields

I am looking to display all tags in select form that are from posts that have been assigned to a specific category. I am using the following code to generate every tag in a select form <div> &...
1
vote
0answers
322 views

Category page shows Oops! That page can’t be found

The article categories can't show the articles. It appears the error message "Oops! That page can’t be found." How do I fix it?
2
votes
1answer
149 views

Category Archive, list subcategories of each post

I found this post, but it was never answered. I'm looking for the same thing, haven't been able to find a solution so far. My problem is that I can't find a way to list subcategories unique to each ...
0
votes
1answer
26 views

Removin /page/2 from pagination

I would like to remove /page from category pagination or translate is so it looks like this: http://www.example.com/category/catname/2 or http://www.example.com/category/catname/customword/2 ...
1
vote
2answers
33 views

shop page with all categories with paginate

I am very new in wordpress theme development. how can i make page template for my store page where my all categories listed with 6 to 10 latest post with that category and category name has a link to ...
0
votes
1answer
17 views

Is there a way to combine categories and their hierarchy into the admin listing page?

A simple question for a plugin that I would imagine must exist yet I can't find it. I want the standard listing page of posts (for my custom post type) to show all the posts within a tree like ...
1
vote
1answer
954 views

How to get product count with respect to categories in WooComerce

Hi I want to display all the categories of products in a loop to display them in category menu along the numbers of products each category contains. Some thing like that so far I have done this to ...
0
votes
1answer
158 views

How can I have different content for different countries?

My company has always served the Australian market, but we are now also working in the US. How can I have a US version of the site with some different pages/content, without having multiple ...