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
2answers
95 views

How do I show posts from another wordpress installation?

I have looked around and I cannot seem to find an answer to this question. There are similar questions/answers but none I have seen managed to answer this question, so I am sorry in advanced if I have ...
0
votes
0answers
72 views

woocommerce horizontal menu parent cat and subcategories as vertical menu

I have looked a while to find a solution for this and cant get a clear path on how to do this. basically i would like the child categories listed as a vertical menu but only the ones who belong to ...
0
votes
1answer
23 views

Get post category as a separate string and url

I need to figure out how to get post category as a string and link, both separate from each other. So the return would be something like: Uncategorized http://link-to-the-category.com however both ...
0
votes
1answer
26 views

Link each category to last post

I would like that each category link to the last post of each category. category 1 ----> link to the last post of category 1 category 2 ----> link to the last post of category 2 category 3 ----> ...
0
votes
1answer
26 views

Make three menus with three category levels

I want to have 3 menus of categories, and each menu with diferent level of categories. First menu with First level categories: category 1 category 2 category 3 If I go to the first category, I ...
1
vote
1answer
49 views

Resort get_categories

I have a get_categories array $args=array( 'orderby' => 'id', 'order' => 'ASC', 'taxonomy' => 'wpsc-variation', 'hierarchical' => 1, 'hide_empty' => 0 ); ...
0
votes
1answer
60 views

Use the category name instead of category slug in permalinks

How to create a permalink structure which finish by: /category-name/post-name/ Instead of: /category-slug/post-name/ By default, Wordpress is offering %category% tag strucure as "A sanitized ...
0
votes
1answer
54 views

Editing “Kahi's Highlight Used Categories” plugin code - highlighting parent and child category in post page

I´m trying to highlight (using css), the child and parent categories in use in the selected post. So I´ve found this plugin "Kahi's Highlight Used Categories". Plugin´s website: ...
1
vote
2answers
72 views

I want to display the all the posts that are inside a certain subcategory

I want to display the all the posts that are inside a certain subcategory in a specific order that I decide (this is because the category contains a list of tutorials and I want to decide how to list ...
0
votes
0answers
42 views

Limit categories appearing in latest feed

I am using ColorLabsProject's 'Reportage' theme ( http://demo.colorlabsproject.com/reportage/ ) as a mobile site and the six categories listed at the bottom of the front page are pulled in ...
0
votes
2answers
38 views

Categories to A News Page

I'm trying to use categories to get all my posts (within a category-news) to go to the NEWS page on my site. I've created the category 'news' with some posts and a 'category-news.php' file which is ...
0
votes
1answer
25 views

Get only X number of categories

How can i get only x number of categories using the_category. I triesd a few thing but none worked. I dont want to use get_the_category
-1
votes
1answer
91 views

woocommerce retriving category name as div class?

I am trying to retrieve the category name of a WooCommerce product displayed in a WordPress loop and use it as the class for an li (also inside the loop). I've tried this: <div id="isocontent" ...
0
votes
1answer
70 views

Taxonomy page wpml dropdown not working

I have created the custom post type with the taxonomy product-categories. I have installed wpml and added the menu with the custom category. When the menu created using the custom post type category ...
0
votes
1answer
55 views

How to get category names in post_class?

I have this class for my posts: <?php post_class( 'entry-image' ); ?> I want to add the category names to get isotope work, i followed this guide ...
0
votes
1answer
33 views

“Item not updated” when try to change category properties

When I try to change some properties for some categories (in most categories it works without any issues), like category name, or description, I see that it is not updated, and I get an issue "Item ...
0
votes
1answer
37 views

Slideshow with custom post type and categorize with taxonomies [closed]

So I have a problem. I made an custom post type and a taxonomy so I can categorize the pictures. What I want is to filter pictures for example: category=Frontpage (shows all the items from the ...
1
vote
1answer
112 views

Show thumbnail for category?

I currently have a code where, in my category.php, it checks if the specific category has subcategories, and if it does, show them using wp_list_categories. I'd love to have these wp_list_categories ...
0
votes
1answer
23 views

How can i show categories of custom post

I make my custom post and the name of that custom post is FAQ. so now i want to show the categories of that post. The code i am using for this is <?php ...
0
votes
0answers
54 views

$category_ID = $category[0] ->cat_ID; For Single at Footer

I'm using the $category_ID = $category[0] ->cat_ID; for my code. When on header, it's working well but when I add it to footer, then it doesn't work. And i used is_single() for it. if ...
1
vote
1answer
112 views

Allow duplicate permalink slugs for posts in different categories

I have my permalink format set to /%category%/%postname%/ and I have two posts with the same permalink slug, but in different categories. Ideally, the two permalinks should look like this: ...
0
votes
0answers
33 views

Display Category Navigation wp-navi

I am writing here because after hours and hours I can't fix my problem. I am using a Custom Theme I am using the plugin wp-navi My pagination works fine. The problem is to display categories when ...
0
votes
0answers
65 views

How do I call a custom template for specific Product category and all ancestors in WooCommerce?

I am very new to WooCommerce and Wordpress. I am currently creating a website using both and I'm having trouble assigning a custom template to a specific category and all its ancestor categories. I ...
-1
votes
1answer
30 views

Help Me “in_category” with echo? [closed]

if i usage below code, that show category id "20" <?php echo $ct_portfoliocatid; ?> But when i usage "in_category" for generate category ID '20'. Like this: <?php if ...
0
votes
1answer
38 views

How to check if a categoryID exists in a theme options page

I have tried to make a theme options page (starting with a sample theme options page from themeshaper) and I want to check if a comma separated list of categories is valid. Remove duplicates, remove ...
0
votes
0answers
17 views

front end category change

Hey I'm looking for a simple way to change the category of a post from the front end. How could this be possible? (I really don't want to use have front end editor plugins, and I want to use a short ...
0
votes
1answer
74 views

Recent posts in current category?

On my category page (not single.php) I'd like to have the recent posts from that category in the sidebar, it also needs to be dynamic. I'm already doing something similar on single.php, but I can't ...
0
votes
0answers
32 views

Incorrect template is being loaded [closed]

I have a custom category.php template within a theme which used to work. Since making changes to other template files for other types of pages, this has stopped working. Whenever I attempt to visit ...
0
votes
1answer
43 views

WP_query exclude a category unless it has more then one catagory

I have this category exclude_cat with id 39 I want to exclude it from the home. So I use for WP_Query args like this: $args = array ( 'category__not_in' => array( 39 ), //exclude ID ); Works. ...
0
votes
1answer
30 views

PHP dynamical conditional post display

I'm trying to get the WordPress loop to display only the post has an ID that reflects whatever $category_name is equal to, as shown in the line of code below. It ends up showing everything and not the ...
0
votes
0answers
28 views

Displaying posts by year

I'm trying to display posts on the homepage from the current year only. I am using the following: <?php if ( is_front_page()) { ?> <?php $current_year = date('Y'); ?> <?php ...
1
vote
1answer
27 views

Customized landingpages for categories

When I click on a category now, it looks like.. Category Archives: MyCategory first post second post third post.. I want to customize these landing pages for special categories, ...
0
votes
0answers
46 views

Posts should use different layout based on URL

I have following situation: My clients site displays various items respresented by posts. The menu allows two options to view these posts: First is "show all items of type X" Second is "show all ...
0
votes
0answers
35 views

post count on toggel menu - product category

I want to add post count on product catalog at widget toggle menu. so product catalog menu will have post count examp computers (2), PC (15) etc. below is the php lines <?php /** * Your ...
0
votes
1answer
24 views

Show the latest post from child category?

How do i show the latest post from a child category? I have the category Photos, but I want to only show the latest post from the Child category "Paparazzi" what do i add to the code below to do ...
0
votes
1answer
40 views

Category that can hold only specific number of post

I would like to know is there any way/Plugin to limit the the post number of a category? And whenever user publish new post in that category then the category release the old post automatically? Like ...
-1
votes
1answer
43 views

How to link images of one WP site to another WP site?

My first site is having 92 categories to display more than 10,000 SMS. Now I want to insert random images to all my posts (SMS) from my other site which is having images as per my categories in SMS ...
0
votes
0answers
31 views

Add new field to categories and use it to order get_categories()

I want to personalize the subcategories order using a new category field called "order". I've been able to create this field using the 'edit_category_form_fields' & 'edited_category' hooks in my ...
2
votes
2answers
187 views

Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/

I made a site some time ago and after some days some posts were indexed by search engines. Today I changed the permalink structure from /%postname%/ to /%category%/%postname%/. After that, when ...
0
votes
0answers
41 views

About: Jigoshop - change the order in which products show up in a grid

I found a piece of code you wrote, this piece of code is exactly what I want to order products on a category basis, but it does not seem to have any effect when I test it. Your code: ...
0
votes
1answer
42 views

wp_dropdown_categories initial value

I am currently pulling in an option drop-down of a specific category using: <?php wp_dropdown_categories('child_of=20'); ?> I would like the initial value of the drop-down to say 'Bedrooms' ...
0
votes
2answers
41 views

How to add the sidebar in all category page

I created custom post type. I created category called product-categories. I listed all categories in sidebar.php. How to show the sidebar in all the category pages listing all the categories. ...
0
votes
1answer
39 views

How to get the post of category

I have created the 2 categories. And these two categories have child category, how can i get the post of the category when I clicked on the category title. Please guide me
-1
votes
1answer
83 views

WooCommerce Product Search Error

I wanted to display product category,in product catalog on my WooCommerce site.I asked another question earlier to make this code working.I added this code on my content-product.php file. ...
0
votes
1answer
109 views

wordpress category.php query for featured news item, broken pagination and repeating posts

I am having a few issues with a site I am building, on the news page It has 1 featured post from the news category and then under that more news category posts, but missing out the featured news item ...
0
votes
1answer
50 views

I need to create a page or post hierarchy

I am currently stuck and I need some advice ASAP. I am making a site for a client on which they need to have a sort of hierarchy like this Carriers (Main Category or page) -Level 1 -Level 2 ...
0
votes
1answer
154 views

How to display product categories and number of sales on WooCommerce

I am currently working on a WooCommerce site.I managed to set it up,do some configuration according to my plan.Now i want to display product categories alongside each products in product catalog,and ...
0
votes
1answer
30 views

Logic for Nearby places with post and categories

I'm developing a website which has states as categories and posts as cities. What we are trying to do is identify each post (city) and also show nearby cities to the current city. As of now we are ...
0
votes
1answer
56 views

Can I hide a specific post from latest posts page?

Let's say that I have a post that I only want to be shown in the page of the category that it belongs to. The problem is that this post is also visible in the latest posts page. Is there a way to ...
0
votes
1answer
39 views

Display categories and their IDs

Could anyone please tell me the code to display parent categories and their children along with their IDs? I'd like to, for example, print them in this way: Europe, United Kingdom, London (Europe is ...

1 2 3 4 5 29