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)

7
votes
3answers
2k views

How can I allow commas in tag names?

I want to allow commas in tag names? For example, "hello, world" or "portland, or" but Wordpress keeps separating them. I can do it from the categories page: And it shows up fine. But anything ...
0
votes
1answer
562 views

Show Subcategory Description

I'm using the following code to show the subcategories of a category within my archive.php page: <?php if (is_category()) { $this_category = get_category($cat); if ...
0
votes
1answer
35 views

How to make that all posts with a category belong also to another

I'd like to make that all my posts in the category A belong also to category B (so after that they would belong both to A and B), is there any plugin or MySQL query that could allow me to do that ...
0
votes
1answer
91 views

Unable to browser posts in categories

Hoping someone can help with this. Clicking on a category either returns a "not found" error, or opens a random post in the category. Verified that the issue is independent of a plugin or theme. ...
0
votes
1answer
45 views

List only categories i specify

Ok, so this site's navigation is built up from Categories. However, my client wants specific grouping of the navigation items, ie. x y z ---- 1 2 ---- 3 4 ---- 6 There is no conceivable way to ...
0
votes
1answer
2k views

Test if post has a category

I need to display some HTML only if the post being displayed has a category - not a specific category, just any category at all. I tried if (!is_empty(get_the_category($post->ID))), but for some ...
0
votes
1answer
303 views

Change Category Page Display

I have several category pages (e.g. example.com/?cat=3) that display only the post titles. I would like to make them display the post as well. What is the easiest way to do this?
2
votes
0answers
95 views

Sitewide categories for all the blogs in the network [duplicate]

Possible Duplicate: WordPress Multisite - global categories I'm trying to do sitewide categories. like when a category is made in the main blog that category is added to all the new blogs ...
0
votes
1answer
2k views

Newbie Question: How to create a “latest news” page showing a list of posts from blog category

I am using the Modest theme from elegant themes at http://lilsaintz.co.nz Under the slider on the homepage, there are three content areas that are generated from pages. I would like to make one of ...
0
votes
3answers
2k views

How to add meta description, keywords, custom title to a category template

I use custom category templates for a few of my categories. Ex: cat-12.php and so on. I use the Fv Simpler Seo and presently it doesnt seem to support an option to edit category templates. ...
2
votes
3answers
637 views

Creating archive pages for children categories

Example: video cat id = 4 video cat child category id's = 7,8,9 news cat id = 5 news cat child category id's = 11,12,13 I wanna display choosen categories ( like video and news ) in the different ...
0
votes
1answer
348 views

How to custom category template based on category?

My blog have 2 categories: Photos and Texts. I would like do customize the category template so that when it renders Photos post's, I want to show a thumbnail gallery and when it renders Texts ...
2
votes
2answers
142 views

Add a wordpress blog to my website having users

I have a php/mysql based site with users segregated into different groups... i want to add blogging system to it so that each group has its own blog which can be authored by users who are designated ...
2
votes
1answer
890 views

get_categories returns an array with one category

I'm running a query on a custom plugin to display all categories and put them into a dropdown (the select parts are outside the loop) which looks like this: <?php $ember_categories = ...
1
vote
1answer
987 views

Specifying multiple categories in URL (permalink)?

For example: http://www.example.com/dell/studio/studio-1558 where dell and studio are categories A few months back I heard from someone that it is not possible. I need to know why? Which part of code ...
0
votes
1answer
955 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
385 views

User level categories

I am using ClassiPress to create a different type of listing classifieds. I will select manually who can subscribe or not (only a type of leaders for a religious institution). I have four ...
0
votes
1answer
256 views

Is there a way to only show Custom Meta Data on single posts from certain catagories

I am trying to use this code to display something in the 'single.php' file on the theme when the post is of a certian catagory. $cat = get_query_var('cat'); if ($cat == '4') { echo "post"; } else { ...
0
votes
1answer
309 views

Better way to exclude category output for post/pages?

I always assumed there was a way to exclude certain categories from being output in the loop using get_the_category, the_category, or one of the term related functions. After looking around it seems ...
1
vote
1answer
975 views

Categories of custom taxonomy don't show any posts

I want to display posts from categories of my custom taxonomy but realy don't know how to achieve this. I am using isotope filtering which works as expected with default post categories. I can click ...
0
votes
2answers
1k views

Customize category query in widget

I would like to exclude a category from my categories sidebar widget. If I understand the way this works, the sidebar.php code is not in use since the widget is displaying the categories. (something ...
1
vote
2answers
406 views

Using permalinks, category slugs, and tag slugs

I'm trying to set up some permalinks for my site. Right now all the posts are under sitename.com/blog/, which is fine. But the category pages and tag pages show as 'sitename.com/blog/category/catname' ...
1
vote
1answer
1k views

How to display custom taxonomies with links in filter menu?

Since two days I am trying to solve a problem with custom taxonomies (categories). I have a Custom Post Type called 'Portfolio' and it works as expected but a problem is with my hierarchical taxonomy ...
2
votes
2answers
1k views

How to change the category in URL for posts in multiple categories?

How can I change the category slug that appears in the URL of a post that's in multiple categories? I'd like to change the default WordPress behaviour of using the category with the lowest id. I ...
2
votes
1answer
756 views

How to display a description of a given category from a custom taxonomy

I have a taxonomy called tcp_product_category. In the admin panel I have created a few terms within this taxonomy. On the homepage I want to display the description of one of those terms with the slug ...
0
votes
1answer
2k views

Custom Post Type Category Link

I have a loop of posts for a custom post type I built. How can i call the link of the category/taxonomy for each post? Thanks
0
votes
1answer
1k views

Exclude category from drop down list form

I need a bit of quick help. How do I exclude category ID number 50 for example in drop down list form in Wordpress? I have this code and I need to just insert the excluded category id. <?php ...
0
votes
1answer
88 views

How do I export the headlines of all the blog posts in a single category?

I need a list of all the blog post I wrote on a topic. (Basically a list of headlines that are marked with a certain category.) One of my readers once created a list like this and emailed it to me, ...
0
votes
3answers
2k views

echo get_post_meta of all post in a category to fill up a select field

I want to retrieve a specific post_meta of all posts contained in a specific category. I want to build a search form at the top of each category with a select field which would be filled up by the ...
0
votes
1answer
857 views

Add class to current post in query_post

I have a query like this; <?php $temp_query = $wp_query; ?> <?php foreach(get_the_category() as $category) { $cat = ...
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.
0
votes
1answer
202 views

Check if post belongs to any category

I've got a custom post type which displays portfolio items. I display the portfolio category on the page using this code: <?php $myterms = get_the_terms($post->ID,'portfolio_category'); ...
0
votes
1answer
601 views

Having Trouble With get_category_by_slug In a Custom Function

Here's my custom function to list child categories by the parent slug. function ribbon_list_cats($parent_cat_slug) { $parent_category = get_category_by_slug($parent_cat_slug); if ...
0
votes
1answer
155 views

Call Current Category

I'm using this in a file named category-portfolio.php which is for the archives page of my portfolio. I don't want to use cat= to specify a specific category. But when I don't use cat= it pulls up ...
0
votes
1answer
377 views

Load the last post of a category

I would like to load the last post when I go to the selected category. For example if I go to http://site.com/category it loads http://site.com/category/35/this-is-the-last-post Does exist some ...
2
votes
2answers
206 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: ...
0
votes
2answers
1k views

Make parent categories not selectable

I'd like that my categories having child-categories don't be selectable on the post article page. What I want to do is to remove the checkbox before their label. I've looked the filter documentation ...
2
votes
1answer
66 views

How can we get Catergory / Term Creator

How can we get the category creator id ? I have checked the tables of category/terms viz. wp_terms, wp_term_taxonomy and wp_term_relationships. But there is no information about creator of the ...
0
votes
2answers
1k views

Category.php template for custom posts

I'm trying to use my category.php file to display all posts of a certain custom post type (say "Company") with a given category. However, when I try to use it by navigating to ...
0
votes
1answer
518 views

Show the categories the current post has

I have a custom post type; posts of this type can have either one or two categories associated with them. I need to display the names of the categories that are associated with each of these custom ...
1
vote
1answer
393 views

How to customize tag and category post listings to show introductory content?

In wordpress, we allow google to index our category and tag pages. We don't use no-index for tag or categories, which results very high ranking in a lots of keywords and we are receiving very high ...
0
votes
1answer
95 views

Page permalink rewrite

I added the following code which allows categories on my 'Page' post type. add_action('init', 'edit_page_type'); function edit_page_type() { register_taxonomy_for_object_type('category', ...
0
votes
1answer
379 views

wp_list_categories link to first post of category instead of calling taxonomy template

I'm using wp_list_categories to give me a list of links to categories (no surprise there) Is it possible to get Wordpress to link to the first post of a given category instead of calling the taxonomy ...
3
votes
4answers
128 views

Wordpress 1 domain multiple blogs

I need to setup a website with wordpress that 1 domain with have different pages of blogs. For example: - my website have Home, Artworks, Techniques pages. - Artworks and Techniques are 2 different ...
0
votes
2answers
112 views

Geting error in post and category [closed]

Hallo, I have in my blog now add a Plugin [Custom Post Type UI] and have great a Post type movies and taxonomies like genre,actors,directer..... like this all ok now i have great a test post min add ...
0
votes
1answer
482 views

create function to call category name and slug

In several theme templates I have code to retrieve the category name and slug for the present post or category page. It is outside the loop. Here is the repeated code: global $post; $categories = ...
-1
votes
2answers
267 views

Change from all posts to specific categories post on main page?

How do I change my index.php to display only the desired categories posts in the main page ? I tought that changing this would workout but instead it just print nothing: query_posts( ...
5
votes
5answers
1k views

Different post sort order within different categories

I need to give each post a unique post order for multiple Categories (per post) it is in. I can imagine a solution using custom fields whereby for each Category there is a corresponding custom field ...
0
votes
1answer
133 views

How to Show or Hidden Categories on page in Wordpress?

I have a problem to resolve. I have wordpress site with 2 pages : Food and Cooking. I have categories : food_categories (1) and cooking_categories (2). I want to show only food_categories on Food ...
0
votes
2answers
176 views

separate posts to have (kind of) 2 blogs?

Before putting a lot of effort in this, just to find out it's not possible: Let's say I have two different categories and I want the user to be locked in one of them after choosing it from a ...