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
1k views

a-z list, categories and sub categories in loop

I'd like to list my categories in a loop from a-z, the code i currently have just keeps repeating over and over im not sure what the problem is but the format should look something like. Parent ...
0
votes
2answers
296 views

Get paged category link programmatically

I want to get the link to a category (specified by id) but with a paged value (e.g. page 3 of category id 4). I was looking into get_category_link()Codex, but it only returns the link to the first ...
2
votes
2answers
501 views

Categories lose hierarchy order once assigned to post

I setup some hierarchical categories and when I assign them to a post the widget reflows and loses the hierarchy display. Example: - Education Services -- Arts & Archives --- Fine Arts -- ...
2
votes
3answers
1k views

Use tag interface for hierarchical taxonomy?

Custom taxonomies are great. I registered a bunch of new taxonomies and wrote an importer to import our hierarchical taxonomy into WordPress a la XML. The problem is one taxonomy has about 1,100 terms ...
1
vote
1answer
1k views

Query Custom Post Types & category_name?

I'm using jQuery Supersized to create a full screen image slideshow. The images are called from a custom post type called Slides. The code works fine but I want to be able to only pull in Slides in a ...
2
votes
2answers
2k views

How can I make post fields required in Wordpress?

I am setting up a Wordpress site as a CMS and trying to figure out a way to make certain post fields "required" before an author can publish a post. In particular, I want authors to be required to ...
3
votes
1answer
377 views

how do I group content in magazine-style 'issues'?

I am building a website for a magazine. It won't carry the whole content of the mag, just a teaser article or two from each issue. I need to have a page for each issue that features these articles, ...
7
votes
2answers
2k views

How to check if I'm on the last page of posts?

I want to display some text on the last page that isn't displayed on the other pages. For example, on category pages: url.com/category/categoryname/page/6 or last page of all posts listed on the ...
0
votes
1answer
133 views

Printing out Main Category ID's in a Loop

I'm looking to print out All of the Main Categories (So Exclude Sub-Categories) in a Loop, I need to get the ID's to do some advanced category listings. So I need to echo this out: 3 CatName 4 ...
2
votes
1answer
3k views

Are Custom Taxonomy Templates Possible?

I am trying to have some information specific to a taxonomy term appear above that taxonomy's archive list. Example: Taxonomy is 'Sports', with football, soccer, and baseball being terms within the ...
0
votes
2answers
631 views

Pagination for query_posts();

I know there have been many question like this and I've read them, but I still cant get it working... I have this query: query_posts(array('cat'=>3,'posts_per_page'=>5)); And I simply display ...
0
votes
1answer
1k views

Show category-ID in custom category-list

I created a category-list to show them in a way, my accordion can use. (Custom in the sidebar) I want to add a class named "current" for the currently viewed post and the viewed category should be ...
1
vote
1answer
571 views

in_category() works in single.php but not in page.php?

I'm using in_category(array) inside The Loop to detect whether a post is categorised into the Discussion category (or has one of a couple of slugs). This works beautifully on single.php but doesn't ...
1
vote
2answers
246 views

How do I automatically put categories and their descriptions on a WP Page?

I am using a blog to keep track of citations I may want to use for a thesis. Each citation is a Post, authors are categories, which are parents to subcategories that are named for the titles of books ...
0
votes
2answers
195 views

Can I style single post that are in multiple catergories?

I have a regular wordpress site and I am trying to make a mobile version of the same site. For the blog section, I have put all of the posts in two categories: blog and mobile. The posts in "blog" ...
0
votes
1answer
142 views

Get a list of all links on a page?

Is there someway to get a list of all links on a page, including links in theme files, header, footer, sidebar, posts, etc? It is possible to do this in JavaScript, but I'm hoping for a server-side ...
0
votes
1answer
81 views

Printing out Category and all Category Children on category.php

A new site i'm making is going to use extensive use of the categories, so here's what i'm trying to accomplish: Main Category Name (Link) List of Sub Categories (All Links) When i'm on a ...
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
587 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
313 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
680 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
355 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
921 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
1k 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
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
403 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
263 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
314 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
997 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
439 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
2k 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
2answers
837 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
89 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
880 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
204 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
626 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 ...