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

Filter wp_dropdown_categories Per Post Type

I'm using wp_dropdown_categories to add a categories filter to the media library. It works fine, except it displays all the categories that are assigned to posts, but I would like it to only display ...
2
votes
3answers
45 views

Custom Posts Types using Posts Category

I'm using some custom posts types, and, I don't wanna create specific categories for each one. I'd like to use the Post Category in all my Custom Post. Here is a example of my new custom posts type: ...
0
votes
1answer
20 views

Include posts from feature category in pre_get_posts

I have two custom taxonomy 'cities-taxonomy' and 'userfeed-taxonomy' and I am excluding all the post which has these taxonomies assigned in my blog page using pre_get_post(); Here is my query ...
1
vote
0answers
18 views

Post Count for Categories, however not to calculate a total

Normally this is how the category widget works. Fruits (15) - Apples (7) - Oranges (3) - Grapes (5) Apples, Oranges and Grapes contains posts, however nothing in Fruits. Lets assume that Fruits ...
0
votes
0answers
22 views

Show posts from all categories

I have a site with 5 different categories, each of them with a notices section. I would like also to have another section to see the latest notices from any category. So far, I figured out that I can ...
0
votes
1answer
13 views

Illegal string offset 'taxonomy' in

I'm struggling a bit with the following error Illegal string offset 'taxonomy' in ... on line 175 Trying to get property of non-object in ... on line 177 Trying to get property of non-object in ... ...
-1
votes
1answer
25 views

How to prevent page re-sizing for mobile browsers [on hold]

I want to prevent my page resizing for mobile browsers, How can I achieve this? My style.css is added below. */ /*---------------------------------------------------------------------------------*/ ...
-3
votes
0answers
19 views

Want category pages to show post links without any except below

I have several categories on my website. I want that when a user lands on a category page. He or she should see only the links to the posts in that category without any page description / excerpt ...
0
votes
1answer
18 views

Remove Category from Menu link

I am new to word press and want to remove category from menu link. Example: When i click Entertainment page redirect to http://khabarchar.com/category/entertainment/ I want to remove category from ...
0
votes
1answer
16 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
31 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
7 views

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

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
11 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
17 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
24 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
22 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
19 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
26 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
34 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
16 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
30 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
46 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
18 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
15 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
40 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
27 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
44 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
43 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
49 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
44 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
15 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
13 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
40 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 ...