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

Display Parent Category of a Post belonging only to Subcategory

So basically, I have posts assigned to only subcategories and not to categories (this is so both of them get displayed in the premalink) and in the post page only the subcategory is displayed. I want ...
2
votes
2answers
2k views

Customizing Default Categories Widget

I am trying to hack the default categories widget from wordpress. I have the categories displaying the way I want but I am having trouble editing the output. The widget shows the number of posts in ...
1
vote
2answers
329 views

Get last post date yesterday from each categories not work & double result post

<?php $categories1=get_categories('orderby=post_date&order=DESC'); function filter_where( $where = '' ) { $today = date('Y-m-d', current_time( 'timestamp' )); $yesterday = strtotime ( '-1 day' ...
0
votes
1answer
968 views

Different Category Headers using in_category and elseif

At the moment I'm trying to figure out why this snippet is not working basically I want to display a div id for different categories. I'm using the following. <?php if (in_category( ...
0
votes
1answer
59 views

How to change amount of categories listed on dashboard?

I have 100+ categories & sub-categories for a site I'm working on. How can i change the amount displayed in the list of categories (default 20 per page) on the dashboard?
3
votes
3answers
726 views

Deleting default category in wordpress

I'm looking for a way to delete default category functionality in wordpress but after i delete the default category in wp_terms table in mysql database, it automatically assigns default category to ...
1
vote
1answer
1k views

Using WP Category Lists Plugin to Dynamically Display Category (PHP)

I am trying to use the Category Posts (WP-CPL) plug-in on a blog I'm working on to filter 'Recent Posts' by category. Basically, when someone clicks on the category name on the blog, I would like it ...
2
votes
0answers
214 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
189 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 ...
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: ...
1
vote
1answer
2k views

How to Import Categories with Descriptions from a CSV File?

How could I import a list of new categories and category descriptions from a file of Comma Separated Values?
0
votes
2answers
1k views

wp_nav_menu not appearing correctly on category page

this is the code i am using to call wp_nav_menu <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => '', ...
1
vote
0answers
131 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
2answers
398 views

Get category id when SEO URL is turned on

<?php /* Plugin Name: Members */ function myFilter2($query) { if ($query->is_category) { $currently_listing_categories = ...
0
votes
2answers
150 views

How to create category page

Anybody could help me to make a category page only. Thank you.
3
votes
1answer
206 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
1answer
663 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 ...
2
votes
3answers
7k views

Displaying category archive of custom post types

I am woefully late to the party on Custom Post Types and only started using them quite recently, so apologies if my questions seems idiotic, but I can't seem to find an answer to my question. I've ...
0
votes
1answer
252 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 = ...
0
votes
1answer
1k views

Advanced archive url structure (category, tag and date)

Is it possible to create a permalink structure like this: mysite.com/category/books/tag/read/2010/01 Or at least something like this: mysite.com/category/books/?tag=read&year=2010&month=01 ...
0
votes
2answers
135 views

Problem: retrieving parent category’s first post

I have a problem checking if a post's category has a parent category, and if so retrieving the first post post of that category. Inside the the_post part: This is my code: ...
0
votes
1answer
336 views

Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?

I added the code below and successfully changed my CPT slug for the taxonomy terms. My blog permalinks are /article/%postname% in case you wonder, and I'd like to keep it that way, so no clashes with ...
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
1k 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 ...
0
votes
1answer
212 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
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?
1
vote
1answer
557 views

How to hide some categories in category list under post in wordpress?

In My wodpress Blog there are some categories use for the internal work. I want to hide that categories in blog homepage category list show under each post. I print category list as ...
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 ...
4
votes
5answers
4k views

Remove the category/taxonomy description field?

How can I remove the category/taxonomy description field? The one which shows up on the edit category/taxonomy page.
1
vote
3answers
2k views

How to run WP_Query to retrieve attachments to posts only from a particular category?

I have a WP blog with a few pages and posts and several categories. I want to write a loop to retrieve images attached to the posts (not the pages) and only those from a specific category and it's ...
0
votes
2answers
763 views

Way to show content of a post, but if exceeds character limit revert to excerpt?

So I am working on a site for a client of mine. We have about 50+ posts filed in a category called "Articles". I created a custom page template that has a custom query to display all the posts in a ...
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
1answer
23 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'); ...
1
vote
1answer
92 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 ...
1
vote
1answer
2k views

Category menu item and its last 10 posts as sub-menu

i have some posts categories as element of a main navigation menu, and i'd like to display the ten lasts posts of this category as sub menu. ex: Category1 Lastpost1 Lastpost2 The ...
0
votes
2answers
2k views

get_the_category listing in hierarchial order

Hello at the moment I'm wondering how I would be able to make this work to post in Hierarchical order within the post loop. <?php foreach ((get_the_category()) as $childcat) { ...
1
vote
2answers
451 views

How to group the loop posts in a particular by author?

I have links going to category pages on a WordPress blog. These category pages show all the posts that are in that category and sub-categories. I want to group these lists by the authors. I guess ...
2
votes
1answer
954 views

How to generate and display widgets areas dynamically?

I want display different content in sidebar for every category, but as I create new ones I have to create the area for it. How can I have widget areas for every category and also display them on theme ...
1
vote
1answer
135 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 ...
0
votes
3answers
1k 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
2
votes
1answer
417 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
230 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
249 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 ...
1
vote
1answer
215 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)); ...
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 ...
2
votes
4answers
908 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 ...
1
vote
3answers
442 views

Let visitors post comments on category page

I'm looking for a way to let users comment categories on category.php, but I haven't been able to find one. Simple pasting didn't do the trick (didn't really expect it to.) For clarification, I'm ...