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)

2
votes
1answer
20 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
20 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
8 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
25 views

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

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
25 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
33 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
25 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
20 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
30 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
36 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
20 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
29 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
28 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
24 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
10 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
10 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
28 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
9 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 ...
0
votes
0answers
8 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
13 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
6 views

Change “productpage” [closed]

How can i change one of the category in the productpage in Wordpress E-commerce I want to open one in a blank page (so i can write some information) linbiokopi.hol.es/?page_id=64 (select "Grus ...
0
votes
0answers
19 views

publish the post in multi categories individually [closed]

I have two manager users and one super admin manager A: manages the posts in category A manager B: manages the posts in category B super admin: can do everything i did this by using the Restrict ...
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
16 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
18 views

In WooCommerce, display category / subcategories for a given product [closed]

I am using WooCommerce. For the current product, I need to display the categories that the product is in, and any subcategories, in this format: Main category / subcategory, subcategory ... Main ...
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
39 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
27 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?
0
votes
0answers
34 views

Different post design as per category

My site has two types of categories ( training & hard-reset ). Under each category there is a slight change in the design for posts. repairmymobile.in/hard-reset/datawind-ubislate-7cz-tablet/ ...
0
votes
1answer
22 views

In what context should Categories and Tags be used

I was thinking on writing up a post called "Review: Ni no Kuni" which would be a personal review on the title game having finished it. Under categories i could make a "Reviews" Category to group all ...
1
vote
1answer
59 views

How get posts from a subcategory of a category by name?

I'm trying to create a subcategory template of a defined category. For example, for each one, I would like to check if his subcategory Photos exists and to get posts of this. Here is my category ...
0
votes
0answers
17 views

Make related posts display first in search result

I'm looking for a solution that makes wordpress website's search result even better. Question: By default, the search result will return all the not really related posts at first, as long as the post ...
0
votes
1answer
27 views

Adding a page summary to a specific page

I know that a list of posts is generated automatically in WordPress, but what I have been looking for is to have a summary of pages, possibly in a hierarchic format, that resides at the side of a ...
1
vote
1answer
32 views

How to get the post type from a category id?

I am trying to find out the post type from a category id. Suppose that, when i am opening a category page localhost/project/foobaar/category/pen I want to know the post type to which category - ...
0
votes
2answers
52 views

Display sub categories of a parent product in products - woocommerce [on hold]

I have searched this forum for the possible solutions but I am not getting anything which works. Maybe I am doing it the wrong way. Here is the code that I have tried so far $parent_categories = '' ...
1
vote
1answer
26 views

Get posts with at least one category in common with current post?

In single.php : I want to get all posts with at least one category in common with the current post. I tried reading through the wordpress codex documentation but I found it rather confusing (I'm ...
0
votes
1answer
12 views

How do I share categories across selected sites in a Multisite setup

I've got a Multisite network that looks something like this: Site A Site B Site C Site D Site E and have a set of Categories like this: Category A Category B Category C Category D Category E ...
-1
votes
0answers
12 views

Show all subcategories post on parent cat page using wp_query

I am trying to display the children categories post. $wp_query = new WP_Query(); $wp_query->query('post_type=post&posts_per_page=12&paged='.$paged.'&category__and='.$cat_id); <?php ...
0
votes
0answers
7 views

Category page filterable by year and month

One of the requirements for a wordpress site I'm working on is to have a category page that can be filtered by year and month. For example: mysite.com/category/dogs/year/2015/month/02 This will ...
0
votes
0answers
16 views

How can I add an “ALL” button to my list of WordPress categories / sub-categories?

I have a blog in which I am calling the WordPress wp_list_categories and all is working OK. My issue is that I am using the parent <li>s to slideToggle the subs, but need to add an "ALL" ...
0
votes
1answer
56 views

Create product category and keyword search form in woocommerce? [closed]

i want to build category and keyword based search form. so i got this following form <form role="search" method="get" id="searchform_special" action="<?php echo esc_url( home_url( '/' ) ); ...
0
votes
1answer
34 views

How to display only posts assigned to a particular, isolated, subcategory

I am trying to set up my wp site where I use posts assigned to categories and subcategories (about 3 levels). I have a list of 1st level categories as my primary menu. When clicked, the intended ...
0
votes
2answers
23 views

Combine “category search order” with “don't display child posts”

Each of these bits of code work separately in category.php, but when I use both together, the first one is ignored. Can someone tell me how to combine them into a single piece of code, or at least ...
0
votes
1answer
20 views

How can I modify this code to iterate over an array of categories?

I'm setting up a query for a series of 12 classes that will last a week each. There will be a morning session and an evening session. I'll have two different loops in the template to break those ...
0
votes
0answers
24 views

Define category ID using get_post_meta

I need to define the Category ID in my singles page through custom fields so that i can load a different category depending on the page. This is what i have so far and its not working. Any help would ...
0
votes
1answer
32 views

Get archives as array

I'm looking for a way to get the values returned from wp_get_archives as an array, similar to get_categories. I need to do this to modify the post counters to use - [#] instead of (#). See my current ...
0
votes
1answer
34 views

Sorting Posts by custom field

I'm trying to sort my posts by the custom field artwork_title. When I use the following code, I just end up with one particular category of posts no matter what category archive I'm on. Also ...
0
votes
0answers
9 views

Category Template - to be editable from the backend?

I have different categories that includes posts of the category. I want to add text and images before or after the posts of the categories are displayed on the frontend. I want to solve this via ...
1
vote
1answer
59 views

Sticky posts on home page, search, tag and archives without plugin

I have a question today. I am looking for a solution to make sticky post available on my website. But, i just got it work on homepage with the code below. function wpb_latest_sticky() { /* Get all ...