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

How to add a post with new Taxonomy without assigning to default category?

I need your help, I have created new Taxonomy in WordPress (Called Sources) and whenever I create new post and select that new Taxonomy WordPress forces to assign Default category. How to disable ...
-1
votes
0answers
28 views

Pagination not appearing on custom category template

I needed to be able to display posts from two different categories on a single category archive, so I used the code below from my existing category template, and specified the two categories that need ...
0
votes
1answer
19 views

How to not display a category post on blog page?

As you know, we can assign a "Category" to any post we write. We can also use a "Category" as link on the menu. Good! By default, WordPress will display all your posts in all the categories on your ...
0
votes
0answers
14 views

How to create a new Recent posts with a defined category

I'm new to editing WordPress pages. I have a homepage which displays Recent Posts and recent items added in portfolio. Here is the link if you want to see it : http://veroniquegemme.com. My theme is ...
0
votes
0answers
22 views

get_posts not filtering custom type by category

I'm trying to filter a CPT (Custom post type) by it's categories. Here's the CPT declaration: class PB_Noticias { public function __construct(){ $this->register_post_type(); ...
-1
votes
0answers
6 views

Drag and drop existed posts in a categories tree view? [on hold]

Is there a plugin for Wordpress to drag and drop existed posts in a categories tree view to rearrange the categories of certain posts?
0
votes
0answers
8 views

Categorizing Woo-Commerce Motorcycle Parts using Pods

I am trying to create an eCommerce website that sells Motorbike parts and accessories and I don't know how to structure everything in WordPress. How is the website structured? We have a huge list of ...
0
votes
0answers
13 views

Adding relevant categories to related post

So, let say you have a post under a category called "computer." Within the page, you have related posts which are under the same computer category. However, this does not include posts under a ...
0
votes
1answer
16 views

How to remove the tilte “category:category name”?

I created a category "TEST" and added it to the main menu in header. Whenever I click on it, it takes me to the page with recent posts marked under the category. But at the top of the page it shows ...
0
votes
2answers
31 views

Get the ID of 10 Latest Pages stored in a Wordpress Category

How Do I get the ID of latest 10 pages from a certain category in my wordpress blog. Please suggest me a relevant function to get that in a form f array or something that could give me the ID's of ...
0
votes
0answers
19 views

Automatic Category selection

So, here is the first code which shows the category of a post(or product). <?php echo $product->get_categories( ', ', '<span class="posted_in">' . _n( '', '', $cat_count, 'woocommerce' ) ...
0
votes
1answer
22 views

Display Count of posts

I'm trying to create a counter that will display the page number followed by the page count of a category page, where there is 1 post per page. For example if there are 10 posts in a category: 1/10, ...
-1
votes
1answer
21 views

Displaying categories and subcategories without link

I want the categories and subcategories to be displayed on my single product pages, but I dont want them linking. I've found some really nice code here WooCommerce - how to display product category ...
0
votes
1answer
16 views

How to loop through a custom field for each post, & display?

I'm working on a category page. I want to show all the posts that belong to that category on one page. Each post makes use of a custom field that I have added. I want to loop through the posts to ...
0
votes
1answer
25 views

Child Category Conditional Question

I am trying to display images if a child category is selected however when a child category is not selected I want to display a message saying its not available. The below code works to display the ...
0
votes
1answer
31 views

Url link to feature image in the portfolio wordpress [closed]

I am new to Wordpress. i have issue with Feature image. just i need to add URL to feature image(when we click on that feature image , it should redirect to that particular URL). also is it possible ...
0
votes
1answer
17 views

How to view WordPress' default category IDs?

It seems that Wordpress has default categories with default (and unchangeable) IDs. For example, the uncategorized category seems to always have an id of 1. Is this always the case? Is there any ...
0
votes
0answers
15 views

WordPress list ALL post categories with count

I'm having trouble getting my 'All' category to show a post count. Lets say I've listed all my categories with post count and also added the show_option_all so it outputs like this: All Spring (4) ...
0
votes
2answers
29 views

Latest updated categories list query, exclude one from displaying

I have this query: $cat_array = array(); $args=array( 'post_type' => 'post', 'post_status' => 'publish', 'exclude' => '187', 'posts_per_page' => 19, ...
1
vote
1answer
14 views

Dropdown category filter

Ive an array set up to filter through various categories, currently it is only displaying 10 a maximum of ten posts instead of all of them. Where have i gone wrong? <div class="select-search"> ...
0
votes
0answers
19 views

Get full control over custom post type url

The situation I have a custom post type, lets call it 'CP', which has two parent categories named 'companies' and 'category'. Posts of type CP can only have one company and multiple categories. So, ...
0
votes
1answer
45 views

Show only top 3 posts from 3 categories in order on home page

This function will show the last 3 posts from any category on front page: // Only top 3 posts from CHR category add_action('pre_get_posts', 'ad_filter_categories'); function ...
0
votes
0answers
17 views

Customised Page from archive-product.php

How can I show on a template customised that uses the archive-product.php code only products from a category? I am using the same code because I need display on some pages some products with the sort ...
0
votes
1answer
14 views

Query post only from categories that have subcategories

My categories structure : Category 1 (8 Posts ) subcategory1 (2 Posts) subcategory2 (2 Posts) subcategory3 (2 Posts) Category 2 (6 Posts) subcategory1 (2 Posts) subcategory2 (2 Posts) ...
2
votes
1answer
39 views

Taxonomy structure of Sport site

I have a hard time figuring out how to structure a site. The site is a news site for 3 different, but related sports: Skateboard, Snowboard and Surfing. Each Sport has typically Athletes, Event names, ...
0
votes
0answers
26 views

Publish specific category posts to specific pages

I'd like to have many different categories of posts. And many "blog template" pages. And when i create a new post of a specific category and see it posted only on specific pages. Is the only way by ...
0
votes
0answers
13 views

Replacing Standard Category Metabox

I am rewriting the standard category metabox to include a Custom Field as a select box which is dynamically updated as the user chooses the categories. This select box is set with all "checked" ...
0
votes
1answer
29 views

How to add additional field to Add new category part (without plugin use) [closed]

I want to add one custom field to Add new category (into WP-admin).The purporse of that field would be for icons (e.g user paste font-awesome icon class and it display icon on front-end). Thank you.
0
votes
2answers
40 views

Changing permalink from /postname/ to category/postname/

I have a website where it consists more than 800 posts, At present my permalinks structure is /%postname%/, but due to some reasons I want to change it to /%category%/%postname%/ I have implemented ...
0
votes
1answer
42 views

How to get the link of all categories

I have this code: <div class="widget-title"><h2><?php echo esc_attr(of_get_option('carousel_post_title'));?></h2></div> So in my home-page.php i GET the categories, ...
0
votes
2answers
26 views

Deleting a category from WordPress admin does it remove it completely from the database?

When you delete a category in the admin of WordPress does it completely remove it from the database? I had a few categories with the same naming conventions (different slugs) but now deleting any ...
0
votes
1answer
22 views

show category name before first posts in each category

I want sort posts in the loop by category and before first post in each category display category name. For example: Category 1 Post Post Post Category 2 Post Post Post Post ...
0
votes
1answer
45 views

WP_Query order by date in meta_value

i have a small problem i think. this is my code for my category-releases.php: <?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'posts_per_page' ...
0
votes
1answer
42 views

Style a category from category list

This is my previous question Wrap a chosen category name with div which I made a mistake on the question, however I got the correct answer. But thats not what I needed. Currently, I'm using this code ...
0
votes
1answer
22 views

Code to display category-specific single.php is overriding normal single.php, too

I have two different post type categories on the site I'm building at the moment - "press" and "blog". I used the following code, inserted in my child theme's functions.php file, to get the "press" ...
0
votes
0answers
30 views

Category Page showing all posts

I created a menu for my categories. (Some links have sub menus). I added this to the top of my index.php page <?php wp_nav_menu(array('theme_location' => 'lib-menu', 'container_class' => ...
0
votes
1answer
29 views

What is wrong with my WP_Query Arguments?

In my single.php file I am using a nested WP_Query to show more posts, at the bottom of the page. My code for the query and nested loop are as follows: <?php $ep_args = array( ...
0
votes
1answer
27 views

Wrap a chosen category name with div

I'm trying to wrap a category name in a post with a div. This is how i get the category name I need. Reference Links : get_term_by term_exists My Ideas <?php $term = term_exists('foo', ...
0
votes
1answer
12 views

How to switch from custom post type URL to category URL?

For the past year, I've been using custom post types to distinguish my different post types (duh). Thing is, I'm now realizing that categories are more efficient in offering archived pages for these ...
0
votes
0answers
12 views

Get top parent category

My category structure is as follows: - Top Category ---- Sub Category 1 ------- Sub Sub Category 1.1 ------- Sub Sub Category 1.2 ------- Sub Sub Category 1.3 ---- Sub Category 2 ------- Sub Sub ...
1
vote
0answers
38 views

Display name of the last child category

I have the following product structure: -- Category -- Deep -- Deeper Currently the last child category "deeper" will only be used for labeling products. What I want to do is to echo only the last ...
0
votes
1answer
9 views

Need list of child category post titles sorted by child category

There seem to be a lot of variations of this type of question, but I have not been able to find one that matches my specific situation or that is less than 4 years old. We have WordPress 4.1.1 I ...
0
votes
0answers
10 views

Wordpress Category Template

When I click on a Directlink on Articles of one specific Category, then a title appears, which I want to change. It looks like this: http://www.youscreen.de/ovopopxo84.jpg I want to change ...
1
vote
0answers
57 views

Category control subcategories

After hours of googling and no result I am turing to you. I have a Wordpress site where me and my colleagues publish information to the rest of the company. There are several screens put up on ...
0
votes
0answers
17 views

Is it possible to combine multiple category__in arguments?

I want to produce a query that returns posts which are in one array of categories and also in another array of categories. So, if my two arrays are: $offices = Array ( [0] => 73 [1] => 74 ) ...
0
votes
0answers
11 views

Wordpress URL strings for filtering posts by category

I'm working on quite a large blog based site specifically on creating a category navigation system designed to display posts based on multiple category queries. I'm doing this using URLs such as ...
1
vote
1answer
17 views

Get the number of posts in a named category, outside the loop

I've managed to do this from a single.php file, inside the loop, but now I need to do it from another page. I need to find out how many live posts are in category named every story (slug is ...
0
votes
0answers
9 views

Can I set a permalink that filters by three categories and a tag, and will be recognised for caching?

I run http://www.oldies.org.uk, a charity website for rehoming elderly dogs. It's been running on Wordpress since 2005 and has only recently begun using permalinks instead of the default query string ...
1
vote
2answers
55 views

Exclude category by slug for for each loop

I am trying to exclude some categories from a for-loop. <?php $categories = get_categories(array('exclude' => 'apps, windows')); ?> <?php foreach ($categories as $category) : ?> ...
0
votes
3answers
29 views

get_posts with multiple categories

If I do a get_posts() with category set to 1,2 I will get all posts in category 1 OR 2. If i want all posts whit both categories, that is 1 AND 2, how do I make that request?