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

Hide uncategorized when no category set

I have the following permalink structure: /%category%/%year%/%monthnum%/%postname% I'm using the code I found here to get rid of the "uncategorized" slug when I don't set any category. URLs are ...
1
vote
1answer
40 views

Cross reference custom post types

Just curious if can I autopopulate custom post fields (like checkboxes or select items) based on another custom posts setup? My goal is to create a custom post types "employees" which can have ...
0
votes
0answers
18 views

Adding custom value to woocommerce category and pulling it

I have 3 categories in woocommerce say Restaurant1 Restaurant2 and Restaurant3. I have found a code (in internet) that displays the the category of product on checkout (Restaurant name )page as well. ...
0
votes
1answer
21 views

Do not output category and tag ulrs

I'd like to use WP as CMS without blog functionality. I use some custom post types with cats and taxonomies, just for building up an isotope filter. My question: Is it possible to do this without ...
0
votes
1answer
32 views

Loop doesn't work

I'm making a box in my sidebar that shows with a loop a list of articles of a single category: <?php // The Query query_posts('cat=31&posts_per_page=5'); // The Loop while ( have_posts() ) : ...
0
votes
1answer
97 views

get_posts() with custom post type does not work outside page.php

I have created a custom post type called "community", created a new post with a category (cat id = 6). I am using the following code: $args = array ( 'numberposts' => -1, 'post_type' ...
0
votes
1answer
45 views

Showing the project type in HREF

Im kinda new to PHP so bear with me. Im building a site for my uncle using the Fluxus Theme in Wordpress. He's an artist, his art is displayed in the following order: Menu Category1 --Actual Art ...
0
votes
0answers
9 views

Linking posts and categories using an automata

I migrated a blog from Blogger to WP and now have some 900 posts to which I have to assign categories. Doing it manually isn't practical, so I designed a parser looking for keywords in the posts. All ...
1
vote
0answers
66 views

List all categories with featuread image from post?

With this code I show all categories: <?php $args = array( 'orderby' => 'name', 'parent' => 0 ); $categories = get_categories( $args ); foreach ( $categories as $category ) { echo ...
0
votes
1answer
86 views

How to display widgets inside a page content without a plugin?

I want to build a homepage where I can show posts gathered from different categories and having the ability to choose such categories from the admin. I was thinking to use widgets for this. Is the ...
0
votes
1answer
49 views

Randomly load categories with latest post

I am creating a slider that loads 5 different categories. The categories are randomly loaded into the page. So I know the id's of the categories and they are loaded random to the page. What I want to ...
2
votes
2answers
80 views

Alphabetizing Posts in a Category Page?

I have written up a page template that will list posts in the same category as the name of the page. I am wondering how to alter it to get it to return the posts in alphabetical order? I have been ...
0
votes
0answers
39 views

Change permalinks for posts except those in excluded category

is it possible to change the permalink for certain posts only, depending on their category? The structure at the moment for posts is: Home: site_url (showing posts in category A) Custom page: ...
1
vote
0answers
62 views

polylang + category/tag custom language link

under wordpress user can define url part for categories/tags, e.g., page.com/category/some-cat where category is user defined string part. Is there a way to define "category" (same goes for tags) for ...
1
vote
0answers
62 views

Filtering *out* a taxonomy from the admin post list

I've got a custom post type 'Speakers' that, after some time, are added to a custom 'archive' taxonomy so that they can be sorted into different sections of the site. I'd like a way to hide any ...
0
votes
1answer
12 views

Add category information beneath post?

I was wondering if it's possible to automatically show some text about a given category beneath the post. I'd like to be able to show some text beneath some (but not all) categories. Use case: I'm ...
1
vote
1answer
75 views

Woocommerce - remove product from category

I'm trying to do the following, but I'm stuck with coding. Hope someone can help me out here. In Woocommerce (on the product-edit page) I can choose in which category the product will be. I made a ...
0
votes
0answers
28 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
27 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() ...
-1
votes
1answer
82 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
108 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
21 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
18 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 ...
0
votes
1answer
82 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
145 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
86 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
10 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
31 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
34 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
42 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
115 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
35 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
39 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
231 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
17 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
49 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
9 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
56 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
43 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
50 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
130 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
43 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
25 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
54 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
124 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( ...
0
votes
0answers
55 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
176 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 ...