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

Post list order by category or taxonomy with URL

I would like order the blog post by my custom taxonomy or if not possible than would like order by category. My custom taxonomy content a year. (2015,2014,2013 etc) I would like make a similar ...
0
votes
0answers
52 views

Category in custom post type

What is the best practice to categorize CPTs in wordpress? Should one use custom taxonomies, or is it possible to use default category taxonomy? Consider having a CPT called news, is that ok to use ...
0
votes
1answer
49 views

How to hide category

In my site I've does some coding based on the category like in_category('featured') do something. Now, this is only applicable to posts only. Also the posts which is associated with featured category ...
0
votes
0answers
58 views

Display categories name of product on product page in wordpress

How to display categories name of product on product page in wordpress (Woocommerce)
0
votes
0answers
13 views

Getting related sub category

could someone give me a hint on this piece of code, I'm using it to get post related to the same category. but I would like to go further and instead of categories I would like to fetch the post ...
0
votes
2answers
89 views

Category-slug.php not being used

I have this category-newbie.php template in my theme. And I have the category "newbie" in categories, but it is not using newbie it is using the category.php EDIT:
1
vote
1answer
73 views

Is it possible to change any of the HTML/URL returned from the_category()

I've found this is on of my theme files: <?php the_category( ' ' ) ?> Ideally I'd like to wrap the whole thing in a function and replace some of the URL's being output, but I don't seem to be ...
0
votes
1answer
64 views

Display List of Categories Within a Custom Taxonomy

My website is an online magazine, so I have a custom function that creates a taxonomy (Volume/Issue) for Posts and Pages. Each issue of the magazine has its own particular category (e.g. News, ...
0
votes
1answer
43 views

Related Posts Excluding Certain Categories

I'm using a related posts PHP WordPress query, but having trouble excluding categories. I've tried excluding via cat and category__not_in as well as both as and not as an array. What am I setting up ...
1
vote
1answer
60 views

create a page which displays a list of categories title+ short description?

I have a code that loops through all categories and: 1.organize them on a Hierarchy of (parent) category and its child categories 2.echo the titles +short description of each category +add "read ...
0
votes
1answer
57 views

How to show 1-5 of X Total Results

I know I'm doing something that's been done 1000's of times before in WordPress, but struggling to get the terms to find it on the Interwebs. I've got a custom category template page and have a while ...
0
votes
1answer
31 views

Getting the permalink to the latest post from a category

What's the best way to get the permalink to the latest post of a chosen category? I have a page that I want to have several links to the latest post from different specified categories. Simple ...
0
votes
1answer
19 views

Mutliple users editing single document in wordspress

My team is working on wordpress for documentation purpose. No I want to create a document with multiple chapters and different team members should edit different chapters. One chapter opened by one ...
0
votes
0answers
93 views

Custom Post Type Categories Not Working

I can't get custom post type categories to work. I'm trying to set up a product CPT with a handful of categories. I have: Products Wood Chairs Metal Chairs Upholstered Chairs ... etc. I need ...
6
votes
2answers
271 views

How do the 'tag' and 'category' (default) taxonomies do 'save_post' action?

I am trying to replace the categories metabox with what looks and works like the tags metabox because there's too much hierarchy and scrolling to check the appropriate categories and sub-categories ...
0
votes
2answers
48 views

Change every post background based on category

Is it possible to change the background color of every post based on its category? I have tried - body.term-adb { background-color: #000; but this only changes the category page, not the ...
0
votes
0answers
17 views

Hide event from specific category when adding events to main RSS feed

I used the following snippets to add events from The Events Calendar to my main RSS feed so that visitors can subscribe to post for the site via Jetpack: // Add Events to RSS Feed function ...
0
votes
1answer
34 views

Outputting subcategory title AND items on Category page

When a user clicks on a category, if there is a subcategory, I want it to appear in an h2 and then the items below it. For example: Click on shirts See Hanes in title, then items HA101, HA102, ...
0
votes
1answer
19 views

Jetpack Mobile Theme: when on smartphone on categories the theme suddenly changes to jetpack mobile theme even though it's deactivated

I'm having a little problem with my mobile theme. I'm using a Momentous Lite child theme for my website. On my Smartphone the home page looks as it's supposed to do but as soon as I switch to a ...
0
votes
0answers
27 views

Editable icons for a submenu

I have a main menu in my website and some of its elements have a submenu formed by different posts inside that category. Now, I have at the moment a harcoded menu with a list and each element of the ...
0
votes
0answers
40 views

Categorizing or tagging post comments

To implement a particular requirement I want to be able to categorize/tag post comments as well. Is there any plugin that does it? Or is it even possible? For example: there might be a post and some ...
0
votes
0answers
35 views

Need help writing loop to display posts by categories in separate divs

Total newb to WP codex. Below is what I'm attempting (the comments describe what I want the loop to do). Thanks in advance for your help! <!-- if there are posts in category slug A, show div below ...
0
votes
0answers
234 views

How to create a category filter on custom archive template?

I am trying to filter posts by category on a custom archive / template page. My template page currently has a custom query which displays posts from four specific categories. Then I have a select ...
2
votes
1answer
183 views

next_post_link and previous_post_link in custom post type single page, in same non-custom category

I have a custom post type "realisation", for which I've made a file single-realisation.php. These posts use the non-custom taxonomy "category". In this page, I use the next_post_link() and ...
0
votes
0answers
42 views

Create a custom post-type catalog by category?

Essentially I am creating a product catalog without any eCommerce features so I'm using a custom post-type as the product and I want to group these into categories for catalog display purposes. ...
0
votes
1answer
31 views

Categories won't appear on custom post type

I've registered a custom post type called 'document', and want to add category support. I understand that either register_taxonomy_for_object_type('category','document'); or adding 'taxonomies' ...
0
votes
1answer
29 views

Edit Posts Page but not category specific pages?

Is there a way to edit the page that shows all your posts? But not affect the specific categorized pages? I have been trying, and cannot seem to find a solution.
0
votes
0answers
22 views

Listing posts according to their popularity and hyperlinking them

I have 3 options in the header of my page recent,popular and feature. I have written a function as follows : function category_recent(){ $cate = get_the_category(); $current_cat_id = ...
0
votes
2answers
37 views

Using if statement in index.php instead of creating separate template files

I've to add just a line when the user clicks on a category link or search for something, so I thought to do something like this inside the index.php instead of creating other template file like ...
0
votes
1answer
476 views

Woocommerce get category image full size

i'm trying to get the full size image of my category products. $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', ...
0
votes
1answer
89 views

Product Category Page in Full Width

Initially the Product Category page is divided into Content Area (70% width) Side Bar Area (30% width) I have removed the side bar area using function.php. However the content area is still in 70%. ...
0
votes
1answer
110 views

Categories dropdown with all values selected using wp_dropdown_categories

I'm using this code to get a dropdown list of categories, but all options are marked as selected. Therefore, the last option is the one that is displayed as selected by default. <?php ...
0
votes
0answers
29 views

How to get the categories from Related Posts using “Posts to Posts” plugin

Sorry if this has been answered elsewhere — if it has, I have been unable find the answer — or if this seems like a basic question. But I am trying to use the Related Posts functionality built into ...
0
votes
0answers
87 views

How to add variable at the end of URL

Regarding category URL rewriting: Current URL : www.example.com/category/croatia/hotel Required URL : www.example.com/croatia/hotel Here the keyword category is default from WordPress. The keyword ...
1
vote
2answers
441 views

WooCommerce change category url and product base

I want to display the url's like this: for Category: /webshop/categories/hoodies/ for products: /webshop/categories/hoodies/test-product how is this possible without giving me 404 not found ...
0
votes
2answers
54 views

Rearrange get_categories array compared to another array

I've got a function that pulls the latest post from each category and arrange categories by latests posts. What I get from this is an array with category ids which I want to use to rearrange the ...
0
votes
0answers
20 views

How to Display Subcategories and its Latest Post as sections or modules under the Parent Category

I want to achieve the following: When in the parent category display as follows: Parent Category Title Parent Category Description Child Category #1 Post#1 Post#2 Post#3 Child ...
0
votes
0answers
254 views

Category filter with load more ajax

What I am trying to do is to do an Ajax request to filter posts on category click depending on the category id, then apply load more posts by ajax. Problem: when I fire the ajax call by clicking on ...
-1
votes
1answer
92 views

Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]

I need to show 7 posts of a certain category. The first needs to appear as Title / Date / Excerpt. While the others can just be Titles of the posts. Right now I am having trouble with getting the ...
0
votes
0answers
23 views

Empty categories not showing up with custom function

I'm working on a WordPress based website, and I have three levels of categories. Something like: Category 1 Child 1-1 Grandchild 1-1 Grandchild 1-2 Grandchild 1-3 Child 1-2 ...
0
votes
0answers
16 views

Single query using Tags(Priority) and Category(Backfill)

I'm working on a widget that I would like to be populated by (a) the same category as the current post and (b) any post found to have a specific tag. So The query would return 10 results always, but ...
0
votes
0answers
28 views

Category page that displays 3 posts from each subcategory

Alright, so my main menu I am adding category "MainCat" that has subcategories i.e "SubCatOne" "SubCatTwo" etc.. When I click on that page I see all posts from all categories on it, unorganised (below ...
0
votes
0answers
20 views

Structuring 3K pages in Wordpress

I am about to convert an old site that have approx. 3000 pages to WordPress for a museum. Rather minimalistic layout: navigation to the left, a main column and a sidebar. Since almost all material is ...
0
votes
2answers
66 views

trying to create simple plugin to filter categories from all authors

i want to restrict all authors to spesific categories i already done it but via theme function.php, i trying to build as a plugin: this my plugin content: <?php /** * Plugin Name: My Restricted ...
-1
votes
2answers
44 views

How to query posts by category with the_title();

Im have a little issue querying a custom post type by category using the_title(); The reason why im doing it like this is because the title is the same as the category name. $args = ...
0
votes
0answers
23 views

Multiple categories using filters ( same as ?cat=21,183,202,1)

Trying to find a filter or other programatic way of accomplishing multiple categories of posts on one page. I dont want to get_posts() or query(). The desired effect is like this: ...
0
votes
1answer
50 views

How can I list all the categories under a Custom Post Type (taxonomy)?

So I have created a custom post type and under that taxonomy named "Category" which serves for categories. How can I list all the categories from there?
0
votes
0answers
21 views

Different categories = different image sizes?

I’m using prosociate and didn’t have any problem with the image sizes before. I know noticed a dilemma. I have multiple categories. Like bags, jeans and dresses. They all have different image sizes. ...
0
votes
1answer
129 views

Can't seem to filter wp_query by current category ID

I'm querying a custom post type ("donor") and would like to list them grouped by category (a custom taxonomy for this post type), with the category title then all posts for that category. After much ...
0
votes
0answers
21 views

Hierarchy of category and its child categories

I have something like this... I have Subjects-->Groups-->post1, post2, post3... Which means I always have posts in groups ... by using wp_list_cats('sort_column=name&depth=1'); I can get top ...