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
0answers
210 views

How to sort posts by last name (2nd word) on ONE category only?

I have an "author" category that is used as a list to browse multiple posts containing author biographies. I have Smart Category Ordering installed and right now it is sorted by title ascending. ...
0
votes
1answer
47 views

Autolinking keywords in text with tags

Sometimes in my posts I use the keywords that exists in my tags and categories list. Is it possible to automatically link the keywords in texts with the tags and categories? Or should do it manually ? ...
0
votes
1answer
187 views

not empty categories don't show in menu [closed]

I'm trying to resolve a problem i have showing category posts. I have added a category to my main menu, eventhough it has posts - in the basic theme it doesn't show, in my theme - it shows as a link ...
2
votes
1answer
638 views

Automated adding of one tag to all the posts in a category

I'm currently redesigning a site that has 700+ posts, divided into about 150 different categories. Some categories have 2 posts in them, other categories have 70. Now for every category, I want to ...
2
votes
2answers
214 views

One Wordpress Install, Two Categories. Each Category Gets a Domain

Ok here is a setup I am aiming for, hopefully someone knows how to get me there: One Wordpress Install on www.mainsite.com www.mainsite.com will be a landing page that points to two Category links: ...
1
vote
0answers
43 views

menu using category and tags

I'd like to do (somehow) manual menus that would display all posts within certain category. Eg, I'd have sections "applications" and "games" so now i can do this: ...
3
votes
1answer
190 views

Saving two categories from two dropdowns in front end posting form

So, here's the deal: I have two category dropdowns, the first for the parent categories and the second for the child categories. They form a chain so that when you select the parent category the ...
0
votes
2answers
147 views

How to create category page

Anybody could help me to make a category page only. Thank you.
1
vote
0answers
129 views

Order by category titles

I have a category page called 'features' this is all fine, but the posts in the features category also belong to a certain genre of film, and it's this what I want to order the posts by on the actual ...
0
votes
1answer
651 views

Latest posts by category — how to exclude current post?

This is the code I use to display the 4 most recent posts under the category the current post belongs to (right below the current post): <?php if (is_single()) : ?> <?php $count ...
0
votes
1answer
232 views

Displaying links to all posts of the same category on the post page

I want to display the links to all posts of the same category of the current post on that page. I wrote the following code in the single.php file. <?php $categories_of_this_post = ...
2
votes
1answer
871 views

Using widget logic I want to show only a widget on the archive page if there are no posts

I have a custom post type with it's own taxonomy and I need to display a widget when on a category archive that is ONLY displayed when there are no posts. Currently I'm using this: is_tax( 'genre' ) ...
0
votes
2answers
1k views

How to conditionally hide author name on Single.php if category is “news”, otherwise if category is something else display author name?

I would like to be able to conditionally hide the author's name on the Single.php if the Category name is equal to "News" and otherwise if the category is something else hide it. How do I go about ...
0
votes
1answer
1k views

Display thumbnails for certain category posts

I have wondered about the web and came across this beautiful piece of code: if(has_post_thumbnail()){ the_post_thumbnail(); }else{ echo '<img src="' . get_bloginfo('template_directory') ...
1
vote
2answers
973 views

Allow users to post to a certain category

I have a website running Wordpress. I have lots of content, e.g. tutorials, and I made a new category on a separate page, so I don't have a lot of content there. I want users to be able to add ...
2
votes
2answers
451 views

When using get_categories or similar, is it possible to filter results that contain certain Tags as well?

get_categories() and related functions, by default, don't return empty categories - categories with no posts. I thought that, since there may be some underlying code checking the post counts, is it ...
0
votes
1answer
206 views

How to get pagination working with “Pending” Posts

I'm working on a site that allows users to browse through pending posts/content on the front-end. However, I can't seem to get pagination working with those posts. I've got a custom query that ...
0
votes
1answer
1k views

Custom menu with categories and tags

Basically I need a custom menu consisting of two level. Top level will consist of available categories, possibly with added feature that each category name is follow by the number of posts in that ...
0
votes
1answer
70 views

WP E-Commerce creating categories programmaticaly [closed]

I was searching WP Ecommerce documentation, trying to find what function to use to add category to WPEC, but no luck. Is there some function or piece of code that can do this?
2
votes
1answer
1k views

How to show post(excerpt) from specific category on wp page?

I need this on 3 pages, all 3 from different categories, and then to show several post excerpts from all 3 categories in sidebar of home page.
1
vote
1answer
73 views

Have parent category contain only one post?

Projects <-contains basic info about projects -Proj1 <-detailed info about proj1 -Proj2 <-detailed info about proj2 -Proj3 <-detailed info about proj3 I have a post attributed to the ...
0
votes
1answer
22 views

Post not found when filtered by category ID

On my home page I am trying to filter by a category type and limit it to one post; but I keep getting "no posts found". Here is my following code: <?php query_posts('cat=34&showposts=1'); ...
0
votes
0answers
22 views

How not to display posts from a certain category? [duplicate]

Possible Duplicate: Exclude Category From Home Page, Display Posts on It's Own Page? This is what I want to do: I don't want posts from a certain category to show up in my blog. ie, ...
0
votes
2answers
419 views

Related Post by category, but not current category child

I need an help with this code. This one works perfectly, but I have this problem I have one category (A) and 2 subcat (C) & (D)... so when I watching the post on a category (C) , I would to ...
1
vote
1answer
91 views

Should I use custom menu, C.P.T. or theme options, or something else for this?

On many sites ( particularly CMS style business sites) there are 2, 3 4 or sometimes more boxes usually containing a title, icon and some text. These appear under the header linking to strategic parts ...
0
votes
1answer
773 views

Show the current post's category, without displaying parent category

I have a series of posts that all reside within a 'Main' parent category. Various posts are assigned to sub-categories. What I need to do is display the direct parent category for the currently ...
1
vote
1answer
461 views

How do I get the child category posts from a custom post type?

I have a Custom Post Type called "Movies" with 2 categories called "Now Showing" (cat id=6), and "Coming Soon" (cat id=7) I am trying to alter the code to only pull in the child category for two ...
3
votes
1answer
795 views

Remove date and category filters when editing custom post types

The answers to this question give excellent instructions for adding filters to the admin edit.php screen for custom post types. But they don't explain how to remove the existing filters on date and ...
0
votes
3answers
964 views

Name of last category level for a post

I want to show the last category level of a post for example, I hav a post in category "Course -> resultat -> Trail" I want to show just "trail" Thanks if somenone can help
1
vote
1answer
131 views

Showing posts from different categories and from custom post type

On my main page, I want to show posts from 3 categories, and 1 custom post type. Is there a way to get them together in one pre_get_posts function? Or do I need to query separately - once for the ...
2
votes
1answer
388 views

cat_is_ancestor_of() for custom taxonomies

I'm trying to use cat_is_ancestor_of() for custom taxonomy categories but it's not working. Is there any other way to check if a category is child of another?
0
votes
1answer
226 views

How to display the 5 latest post titles but allow only 1 in there of a specific category

The question probably needs some clarification so here I go: I'm building a carousel displaying the titles of the 5 latest articles. However, from a specific category (called schaft in my case) it ...
0
votes
1answer
1k views

How to choose a sort order (for posts) per category? (ideally when creating a new category)

Assume I have a bunch of posts (articles) in two categories: "upcoming events" (cat=1) and "past events" (cat=2). When listing all posts of a specific category out of those two, category 1 shoud be ...
0
votes
2answers
238 views

Category URL Management

When you keep the category base ( that is you don't remove it by a plug in) WordPress does allow you to browse to your 2 level deep category in two different ways as the example below would ...
0
votes
1answer
275 views

Duplicate homepage to show posts from 1 category

I'm trying to accomplish the following: I wan't to display all posts from a certain category on a page that has the same layout as the homepage of the actual blog. I found the following online to ...
1
vote
1answer
107 views

How do you create a custom template to display a category with an image and related posts below?

I am trying to create a custom template that can give the following effect... Category Name A (with image) post with category name A post 2 with category name A post 3 with category name A ...
0
votes
4answers
2k views

Exclude categories from postquery

I asked this question without a clue what was going on. I got an answer with the code below. It worked when I got it. I tested it with shirts only, assuming it worked with the other cats. it doesn't ...
0
votes
2answers
166 views

handling the featured category

From time to time, I feature posts from the archives. Sometimes, I need to feature items 2 3 years back. In order to feature such posts, I simply categorized them into the featured category and once ...
1
vote
1answer
210 views

How to exclude posts from a category when using this particular format

I'm trying to exclude posts from a certain category from being displayed on my home.php. The code that is in my theme is as follows: query_posts(array('post__not_in' => $featured_posts_array)); ...
2
votes
4answers
843 views

How to hide certain categories in wordpress dashboard?

I have two categories which I dont want to show to my site's admin, I want them to be added automatically everytime a new post is creatd or updated. I have the code for it. But now i also want to hide ...
0
votes
2answers
35 views

Linking doctors posts to specific services for a medical practice

Hi I am creating a website for a doctors clinic and I need some help with the code and structure. I have different service posts i.e. Dentistry, Exercise ecg and Chelation Therapy, all these posts ...
0
votes
2answers
165 views

Let users comment on categories in WordPress

I'm working with a client who wants visitors to be able to post comments on categories instead of on individual posts, but I am unsure on how to go about it. Is it possible to display the comment form ...
3
votes
1answer
5k views

Remove parent category from permalink? Basically only have the child category?

I think there used to be an out-dated plugin to do this. Is there any way to do this easily with just a little code? We prefer not to rely on a plugin since that makes us dependent on the developer ...
0
votes
1answer
123 views

list taxonomy based on taxonomy

Please, someone can help?! I'm fighting with this for weeks and nothing.... I'm quite new in wordpress and php... There is a way to list taxonomy terms based on another taxonomy? OR If is possible to ...
0
votes
2answers
3k views

WP E-Commerce WPEC 3.8 Sort Categories

I'm running Wordpress 3.1, with the WP E-commerce plugin (3.8.2) with Gold Cart 2.9.1. I posted this question a while back on the getshopped.org forum, with no solution unfortunately... I have a list ...
0
votes
2answers
392 views

Display latest post from Wordpress Featured Category that is also in X,Y,or Z categories

I want to display the latest post from a "featured" category (id=1) that may also be in either X category, Y category, or Z category (id=2,3,4 respectively). Note, there are other posts in categories ...
2
votes
3answers
2k views

Check if post belongs to any category

In my homepage loop, I have something that will show which category the post is in. It will say something like "Posted 4 hours ago in Sports by ...". However, when there is no category set, it will ...
1
vote
2answers
2k views

Add extra fields to Add New Category page

I need to add an extra field to the Add New Category page. Currently it only has fields for Name, Slug, and Description. Essentially, I need to have a second description text box. I use the current ...
0
votes
1answer
79 views

How can I get rid of the the category suffix--NOT “prefix” (i.e. foo-1, foo-2, etc)

I just added a new category to my WordPress site, but the WP is adding a "-2" to the url as if there was an existing category with the same name. But there isn't. There was, but I deleted it. How can ...
0
votes
1answer
56 views

Custom loop by url

So currently I have this working for 'search' ie: if I do www.domain.com/search/query, it returns everything it finds on the word 'query'. I would like to utilize that loop/template I created within ...