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)

-1
votes
1answer
16 views

Limting the category output

How do I limit the output of categories shown with <?php the_category();?> I only want to show one or maybe two categories that is associated with the current post, only on the home page. I'm ...
0
votes
0answers
8 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 ...
-1
votes
0answers
7 views

category filter both in menu and widget don't work

I set up a menu from categories, but when I click the menu, it doesn't display all the posts from that category. I just wonder maybe it's archive.php's problem,but I'm quite new to PHP and not able to ...
0
votes
0answers
9 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 ...
-1
votes
0answers
28 views

sorting of posts belonging to a category by recent,popularity and featured

i would like to sort my posts of categories by recent,popularity and featured. i want links on the top of the category page as recent, popularity and featured and when the popularity is clicked the ...
0
votes
0answers
9 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
0answers
12 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
10 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
11 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
18 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
19 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
20 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
23 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
0answers
16 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
7 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
11 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
40 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 ...
0
votes
0answers
12 views

How is my meta_id related to category? [on hold]

I have installed a plugin that enables me to add image for category. And i found the image on wp_postmeta table, but i couldn't find how it's related to category that i assigned this image with. ...
0
votes
0answers
16 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
21 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
13 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
28 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
24 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
13 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
11 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 ...
-1
votes
0answers
19 views

Add extra fields for categories

I need extra fields like Image, text field, text area (editor) fields for categories and needs to display in frontend in wordpress. Please see my page structure in the image. I need this type of ...
0
votes
0answers
9 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
0answers
29 views

How to display 20 posts by categories in custom sorted order and by post tile

I need to display 20 posts by categories that have custom sort order and orderby post title. Category (VW) order 1 - Beetle - Golf - Jetta - Toureg Category (Honda) Order 2 - Civic - Odyssey - Pilot ...
0
votes
2answers
21 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
24 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
16 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
13 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?
-1
votes
0answers
15 views

How to stop showing posts at TOP categories [duplicate]

I have a main category and a sub category. If Main category is birds: http://origami.directory/birds/ And Sub category is Ravens and Crows: http://origami.directory/birds/ravens-and-crows/ I only ...
0
votes
0answers
18 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
28 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
11 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 ...
0
votes
0answers
23 views

Wordpress multiple front-pages based on 3 main-pages

i'm in progress of redesigning a website and i'm stuck on how to work something out, hoping to find an answer here. The website will have a front-page where they can choose between ...
0
votes
1answer
25 views

How to exclude category and post_tag taxonomy while displaying custom taxonomy?

The code i'm using for displaying custom taxonomies is as below: function custom_taxonomies_terms_links(){ // get post by post id $post = get_post( $post->ID ); // get post type by post ...
0
votes
0answers
24 views

Embed specific parts of external webpage [migrated]

So I am creating a website and want to embed a menu to it. We are currently using Leafly for our menu system and want to use it on the site too. However, there are 300+ products and I do not want to ...
0
votes
1answer
82 views

Programmatically create product category and add thumbnail in woocommerce

I'm trying to create product-(sub)categories on a WordPress installation. The (sub)categories part is no problem at all, but I can't seem to find a way to add the thumbnail image to the specific ...
0
votes
0answers
16 views

How to add number of post to category menu items

I wanted to know how we can add number of posts for dropdown menu items that are categories. For example: Topics Category 1 (5) Category 2 (8) Category 3 (2) More Topics Category 1 (5) ...
2
votes
3answers
176 views

Update taxonomy value of post type in query

I have a situation where i have about 5000 imported records in a custom post type (travel) with a taxonomy category (country). Since i import from several different locations and each source seems to ...
0
votes
0answers
26 views

Dynamically generated breadcrumb functions for category.php

BACKGROUND: I want to create a template page (using template.php) for news articles. News articles fall into about 7 different categories (Local, Special Events, Tech, etc). The template will use ...
1
vote
0answers
8 views

Make a custom_post translatable

I have a problem with two plugins. The 1st plugin adds a custom_post type whenever a post is created. The 2nd plugin is a translator and only shows posttypes that are translatable (according to the ...
0
votes
0answers
14 views

How to make two permanent categories that every one has to press before posting something [duplicate]

How to make two permanent categories that everyone has to press before posting something.
0
votes
0answers
35 views

Use different file includes for single.php

I'm beginning to convet html to Wordpress, I've some problem in single.php to show the post with different headers because mysite use in English and Arabic language. My site containings Arabic and ...
0
votes
0answers
21 views

setting for child category posts in single.php

can any one help me or translate what I want in php: I need php code like that: If child categories posts from the parent category number (1) { will include templatepath'/single-Arabic.php } else if ...
0
votes
0answers
21 views

Modify first post of any category page [duplicate]

I want to modify or add some text before first post of my few category page. How I can achieve this. Which filter do I need to use.
-1
votes
2answers
47 views

show posts from some category and sort by advance custom field

i want code that show display some category and sort by acf field. for example show all post from category 122,123,124 and sort all of them by acf (for example : lastname ). please write code for me. ...