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
vote
1answer
157 views

How can I show 1 featured post in a styled element, and the next few below differently styled

I'm looking for some thoughts, ideas, and/or direction on what is the best way to accomplish this: Basically I want to have 1 "featured" post in a differently styled div, and then display the next ...
0
votes
1answer
696 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway (...
0
votes
1answer
1k views

wp_update_post is not updating category

I am using this custom function to add a publish/unpublish button to the front end of my site for the users: if ('draft' == get_post_status ($post_id)) { $post = get_post($post_id,...
0
votes
1answer
505 views

Make wp_dropdown_categories into a variable that persists until changed?

User selects category1 from wp_dropdown_categories, if user clicks on tag2 any point after, they only see posts from category1 with tag2, not all posts with tag2. Is there a way to store the chosen ...
0
votes
1answer
269 views

Using pagination with multiple loops causes it to break

I'm have two loops on my index page. One fetches the latest posts from the 'work' category and the other fetches the latest from the 'blog' category. (see below) I am also using a plugin called WP-...
0
votes
1answer
407 views

Split multiple categories into two columns

What is the best way to split multiple categories into two columns on the page? At this moment I don't need category-A to go into column-1 and category-B/C/D to go into column-2. I just need multiple ...
0
votes
1answer
128 views

Editing Loop So It Targets Specific Tags?

Confused on how to achieve this, but what I'm trying to do is load posts with the tag "reviews" in the loop on the homepage. Index.php: <?php /* Start the Loop */ ?> <?php while ( ...
0
votes
2answers
246 views

Change Default Content when Creating a Post based on Previous Category Choice

I'm working on a system that forces users (unfamiliar with wp) to choose a category before creating a new post, and then adds some appropriate html layout styling to help them. The following code ...
3
votes
1answer
131 views

How can I create a loop to build slides based on multiple categories using Coda Slider

I'm using a loop to generate the slides I need for a Coda Slider slideshow. The slides should be pulling the most recent post from 5 different categories. The problem I'm having is that it's pulling ...
8
votes
2answers
258 views

Individual rss feed entry length for categories?

I know how to retrieve the rss2 feed from a category in wp, namely adding /feed behind the category name. However when I do this, not all entries from that feed are included in the rss, this is ...
1
vote
0answers
107 views

Older entries link within category page

I am building a custom wp theme and I have a category called 'blog'. On here I have all of my posts displaying from the category 'blog' and a link at the bottom that says older entries. When i click ...
1
vote
1answer
156 views

Category index featured image

I wish to set a featured/header image for each of my category archive pages, how would I go about doing this without hard coding each category into the theme? An example of the page is at http://...
0
votes
1answer
1k views

List products from current category

This code is from the archive page and list all products with a certain tag, can someone please help me to modify this code to make listing products only from current category: <?php if ( ...
4
votes
1answer
1k views

Add forward slash on categories url (serve one version of a url)

How can I a add forward slash on categories URLs and serve only that version of a category (meaning URLs not ending in forward-slash will redirect to URLs ending in forward slash). I manage to remove ...
1
vote
1answer
81 views

change recent posts based on category

I am writing a code to display the recent posts of different categories. On clicking category 1, I want to display the recent posts from cat1 and on clicking cat 2 the recent posts from cat2 and so on....
0
votes
1answer
591 views

Show last post from multiple categories using wp_list_categories

I have the following code that lists out the children categories on a separate page when you click on its parent category. The code renders a list like so: Home › Archive for IQ Issue 7 Journal ...
3
votes
0answers
250 views

How to create a custom url for a category

I took over a site that displays the category in the URL three different ways. For some categories it shows "?category_name=blah". (Not ideal, but I can live with it) For newly created categories ...
0
votes
1answer
85 views

Exclude Specific Categories?

the code I'm currently using to display categories is <?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' ';}?> I would like to exclude a category called "home-...
0
votes
1answer
2k views

show category in woocommerce

This code show tags from a specific category such as id = 3. I want to make automatically check which category I am. Can someone please help me ? $args = array('categories'=> '3'); $tags = ...
0
votes
1answer
318 views

wp_delete_term or wp_delete_category?

Hi I need a simple piece of code to delete a category for a custom plugin, but I just found two function references that seems quite the same: Function Reference: wp_delete_term Description: Removes ...
1
vote
2answers
3k views

Combine Multiple Categories Into One URL Slug

I have a Wordpress website with 20+ categories. To make it easier to navigate I want to decrease the categories, but at the same time keep the original categories. In other words I want to be able to ...
1
vote
1answer
593 views

How to get grandparent of a given category

Just wondering what the best way to get the top-most level category (grandparent) of a given category assuming it has one? Example structure: Operating Systems - Mac - - Mountain Lion - Windows - - ...
1
vote
1answer
1k views

Parent Category link to its sub categories on different page

I am creating a magazine style wordpress site. We have multiple issues which will be parent categories and these will have around 3-5 sub categories. Every quarter we will create a new issue with new ...
2
votes
2answers
2k views

Different templates for parent and children categories/taxonomies

I would like to know what is the best way to create a different template for parent and children categories and/or taxonomies. Example: I have a taxonomy called region, which I want to divide in ...
1
vote
1answer
1k views

Get Tags specific to Category using WooCommerce plugin

Could anyone help me to implement this code in WooCommerce, ie instead of categories to use product categories, and instead of tag to use product tag. In functions.php : function get_category_tags($...
2
votes
1answer
953 views

How to create category index table out of wordpress site or on other website?

I want to create a page on other part on my website (outside wordpress directory) where I can show list of posts from a specific category. I am looking for exact solution provided by @toscho here: ...
5
votes
4answers
1k views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
0
votes
1answer
46 views

Limit the number of posts a category can have - newest post goes in, oldest one drops out, possible? plugin?

I would like to limit the number of posts which can belong to a given category, for example: The "News" category should have no more than ten posts. When the eleventh post is created the oldest post ...
4
votes
2answers
678 views

Multisite - Protect categories from deletion?

UPDATE: For anyone following this thread, the plugin solution does work, but seems to have a problem on my multisite format. I have now tested on 3 individual installs and on 3 multisites. On the ...
1
vote
1answer
363 views

Assign post format to categories

I'm looking for a way to allow Wordpress (via a plugin?) to assign a specific post format to categories. (I can assign categories via a third party like IFTTT) Then all my posts in a certain category ...
0
votes
2answers
3k views

Display all posts in current category

I am looking to create a behavior as shown in the following link: http://www.javaexperience.com/java-role-of-serialversionuid-in-serialization/ Here all posts from the same category are being ...
1
vote
1answer
157 views

How to change how many list item show in category generated by file edit-tags.php

It's always been a pain in the @$$ to see only 20 item in category. If i have 30, it paged on 2 pages, i hate that. If WordPress had a preference for that. So the question, Hot to list ALL the ...
0
votes
1answer
517 views

Restrict category choice in dropdown menu?

Hmmm... maybe trickier than I hoped? If this is simply impossible then please do let me know :-) Question Refinement:How can I adapt the include section of this code to use category names instead of ...
0
votes
2answers
112 views

Multiple blog “feeds” in a single blog each with distinctly styled post pages

So, I get how to easily create separate blog "feeds" in a single blog by using categories. While I can style the category feed pages differently, unfortunately they both just provide links to the same ...
1
vote
1answer
155 views

Admin comments and user restrictions

I have set a bunch of roles within wordpress with the help of the "members" plugin. But the capabilities regarding the comments moderation are very limited ("manage_others_comments" or not) What I ...
0
votes
2answers
192 views

Custom Taxonomy Taxonomies of Same Name point to first created URL

I created a Custom Post type and in that custom post type have a hierarchical taxonomy (categories). Here's an example of the categories I made: Hats - Mens - Womens Shoes - Mens - Womens The ...
0
votes
1answer
60 views

Custom Post Type or just Post Categories?

I'm using WordPress as a Content Management System. I currently have a few different Custom Post Types: featured, species, answers, forums and glossary. These are all bespoke and wouldn't work with ...
0
votes
1answer
490 views

Widgets: Show Recent Posts Only if the Posts Have Both Categories X and Y

I've been trying to create a Recent Post widget where it only show/display posts that have both categories X and Y (or more). The categories X and Y is user-defined, so I'm planning to make it look ...
0
votes
2answers
67 views

Use get variable when rewritten url in wordpress

I have many pages which have a lot in common. They are supposed to display the same things but according to their own categories. The logical way to implement this would be to pass a variable through ...
1
vote
1answer
73 views

Separate custom categories from default category

I created a custom post type named as 'notice'. For both categories I assigned taxonomy like - function register_notice(){ $args = array( 'labels' => array( '...
2
votes
1answer
450 views

Glossary with Custom Post Type

I´d like to make a glossary. It should looks like: Index-Nav 0-9 | A B C ... M ... X Y Z B BMW M Mercedes ... ALL entries from index-nav (A-Z, O-9) should be visible in a <ul> and should ...
2
votes
1answer
342 views

Sort post's categories by ID

I have a blog in which several post's categories have to be outputted first before other categories. Those categories have lower ID compared to other categories. I am using get_the_category_list but ...
0
votes
1answer
399 views

Custom Post Type order Title ASC

I´d like to display all car manufacturer in order by title (e.g. "Merecedes") and order from lowest to highest values (e.g. "A-Class") "ASC", too. It should looks like a glossary. Page: Cars A ... ...
8
votes
2answers
477 views

Get rid of Wordpress category, tag and author archives?

I have searched the net with no success on what should be an easy thing. I have a highly customized blog with pages, sub pages and posts. While I rely heavily on the use of categories and tags I don'...
4
votes
3answers
2k views

Posts in multiple Categories different single.php

I am smashing my head against some code. Here is the situation: I have one post in 3 different categories, this post has to be visible in "category 1" with the single1.php, in "category 2" with ...
0
votes
1answer
444 views

How to correctly display category's slug as a class?

I want to display category's slug as a class. I try to code and put this into functions.php add_filter('the_category', 'my_custom_get_the_category_list'); function my_custom__get_the_category_list($...
0
votes
1answer
366 views

Give child-categories same class (the parent category-slug) as parent in menu list?

I am trying to do two things, which I have no idea how to do: give child categories the same class as the parent category (which is the parent category-slug) create a menu which displays my ...
0
votes
1answer
60 views

posts going to 2 pages/categories only show up in 1

I have a portfolio website where my portfolio updates are supposed to go to both my portfolio and blog pages, as well as show thumbnails for the posts on my homepage. The thumbnails work perfectly; ...
2
votes
1answer
492 views

Changing post category from dropdown

I am showing a list of posts on the front of my wordpress site which each have a dropdown next to them with a list of category's, which are pulled in as follows. As you can see the form submit button ...
2
votes
4answers
1k views

Creating “static” taxonomies to choose from, inside custom post type?

Alright, so i have a custom post type called Blurbs (translated, sort of). I want to add a static set of categories for the posts within Blurbs (i don't want the user to be able to create custom ...