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

Display list of categories filtered by date?

I have a sidebar on our intranet which lists, hierarchically, posts by category. Such as: -- HR ---Events ----Picnic However, this list has gotten long, and some categories are no longer even ...
1
vote
3answers
274 views

How to limit displayed posts on wordpress

How would I edit the following code, so that only 2 of the posts are echoed instead of 3 <?php global $more; $more = false; # some wordpress wtf logic ...
0
votes
1answer
470 views

new WP_Query issues

My default wordpress set hold 10 posts per page. In category.php , I want to override this with 999 post per page, the problem is that isn't working at all. When I use the following code. it ...
0
votes
1answer
42 views

categories of custom post type shows in CMS but not in the frontend webpage

I have created a custom post type "Events" and added the categories function for it. However, the categories only shows in the backend CMS which I can set and add new categories, but no message ...
3
votes
1answer
844 views

How to set up sub-categories for author pages?

I am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc). I know that ...
0
votes
1answer
43 views

Problem with menu categories doubling up when updating database?

I imported a database from a website to my localhost and the menu categories started doubling up. The wordpress dashboard is also missing my custom post types. How can I solve this?
0
votes
1answer
64 views

Display one result for category post type

I'm using taxonomy categories to show my custom post type, but when I click on it, no page is linked. How do I create a page to display the results from categories? I tryed like custom post type: ...
1
vote
1answer
86 views

How can I make my custom posts appear in their assigned category url?

I am trying to solve this problem: I created new custom post types. When I create a post and assign a category (lets say category-1) to it, and when I try to visit the category-1 url, it appears ...
1
vote
1answer
903 views

Show add_meta_box by selecting a specific category

In my plugin I want to display an add_meta_box under the WYSISWYG in the new post page, which is no problem and works fine. But the box should only appear when a specific category (example: category ...
0
votes
1answer
360 views

Sort categories by meta value

How can I make a list of categories with 4 last posts in each where every category is sorted by meta_value. For example, template without sorting by meta_value is http://pastebin.com/AeH6vx9b It ...
4
votes
2answers
121 views

Randomise results from a category page?

I have my standard category page. On this page, I'd like to put a button which, when clicked, randomises the results shown on the category page. I know I could make a rand-category.php page and send ...
0
votes
1answer
130 views

Paginating a list of all posts collected by category titles

I'd be really grateful if anyone has any ideas about what might be wrong with this code or, alternatively, could suggest an entirely different way of achieving the same aims. I have a site (staged, ...
0
votes
1answer
236 views

Get URL Category Name By ID

I have this URL: http://example.com/?s=&cp_state=0&scat=16&sa=search&refine_search=yes and this code on search.php: <?php $searchTxt = trim( strip_tags( ...
0
votes
1answer
259 views

Multiple category columns and post counting list in wordpress Homepage

I am decide to make new wordpress website. But my WordPress webdesign structure need home page category navigation bar like directories and it also show only posting counts. Now I am add one sample ...
0
votes
1answer
136 views

Categories and page filtering with pre_get_posts

I have 3 pages, "Page 1" shows custom post-type "articles", "Page 2" shows custom post-type "tips", and "Page 3" shows both custom post-types. This is done conditionally with a custom loop in ...
0
votes
1answer
70 views

Return selected categories only in custom page meta box?

I have a custom meta box added to the Page edit screen. I also have categories turned on for Pages. I'm using get_categories($post->ID); to retrieve a list of categories, as you would in a page ...
0
votes
1answer
361 views

How to make a relationship between books and authors?

I have a book category, but now I would like each book could be concatenated with the author profile page. And the tab for the author to show, in addition to text, the list of books he has written. ...
0
votes
1answer
185 views

Filter Category Loop Dynamically

I'm trying to display a custom loop with a dynamic category filter. As a setup I have categories of all usernames which are created once a user creates an account. So I am trying to echo the user's ...
0
votes
1answer
68 views

Remove the_content From Loop

I'm trying to display a custom loop with only certain elements in it. My loop currently contains the title, creation date, author & content. However I am trying to remove the content for each ...
0
votes
2answers
302 views

Set Default Category to Username

I installed a plugin called "Symbiosis" which creates categories automatically copying a user's username upon them signing up. Whenever any user creates a post on the site, I am trying to figure out ...
1
vote
2answers
555 views

Child_of not displaying all children posts.. via get_posts

I have put together this loop to display all children posts of the desired cat, but i am not getting any of the posts from one of the children cats.. Not sure if i am using the best method to ...
1
vote
1answer
17k views

How to show related posts by category

In my gallery site i want to show other pictures under the current picture (in single post). I seen more codes but it i asks to specify the category, but i dont want want specify the category manually ...
0
votes
2answers
52 views

Unassign uncategorized from post with 2 or more categories

So I have a bunch of posts assigned categories like: a main one and uncategorized one (which I forgot to unselect). The problem is that i'm using %category%/%postname% as permalink which will use the ...
1
vote
1answer
520 views

Custom order categories in admin dashboard

everyone, is there way to order categories in add/edit post in admin dashboard. The problem is my order must be custom, not by Name or ID. For example: Rumors (id 5) News (id 1) Features (id 7) etc. ...
0
votes
2answers
183 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
740 views

Categories will only display links to posts

Hey I'm currently using the Titan theme for my website and I want each category to display each FULL posts for that particular category, but with my theme Titan this is not a option. I only get links ...
0
votes
2answers
95 views

Showing all the posts in one page?

There are over 200 posts tagged with the keyword "Apple." Each tag page -- example.com/tag/apple/page/2/ -- shows 10 posts. So there are 20 tag pages. Is it possible to show all these 200 post ...
-1
votes
1answer
57 views

How to display my categories in a list (to a post, not the sidebar)?

i want to display my categories to a post like a list. i have this (parent- and child-) categories: - Sports - Football - Basketball - Toys - Dolls - Lego - Books for example one ...
1
vote
2answers
346 views

Edit the markup of categories list

I want to list x number of categories. I'm using wp_list_categories function, it generates the following markup <li class="cat-item cat-item-1"><a ...
-1
votes
1answer
65 views

Custom permalinks structure

I would like to have this structure: www.mysite.com/2013 (must show all posts of 2013) www.mysite.com/my-category/2013 (must show all posts of 2013 and of category "my-category") ...
1
vote
1answer
334 views

Full text articles in the rss feed (i.e. without the more tag)

I can't seem to remove the "Continue reading..." link in my rss feed. The feed is located here: http://gforge.se/category/r/feed/ I use the <!--more--> tag manually and I've checked that the ...
0
votes
1answer
177 views

Advanced permalinks structure

I would like to get this: mysite.com/category/tag/ example: mysite.com/news/sports/ News is a CATEGORY and sports is a TAG How can I do it? Thanks.
0
votes
1answer
323 views

Custom post type category permalinks and archive pages

I know this question was brought up before, but I can't seem to get things working using any of the proposed solutions. This is how I have my custom post types and categories setup: Custom Post Type: ...
0
votes
1answer
962 views

Create a Category with a front-end post

I'm creating a buddypress site in which a single post will create the trunk of a related series of articles. From that trunk article, related branches of posts will stem outwards. Anyone signed up ...
-1
votes
1answer
21 views

Are custom posts included when getting a categories' posts?

Would WP_Query('cat=1') display custom post types, or is that something that I have to specify? I have a custom post type, am assigning it to a category, and would like for it to be displayed when ...
0
votes
1answer
86 views

Display deepest post category, when post have multiple categories

I want to display the direct category ancestor of a given post. An illustrative example: These are the categories I have: Cat1 Cat2 Cat2.1 Cat2.1.1 Cat2.1.2 Cat2.2 Cat2.2.1 ...
0
votes
2answers
2k views

SQL query to get posts from multiple categories but not in a category

I need to get the last posts' ID and the post_tile within categories 1 and 2, and exclude those within category 3. It must be SQL, because if I use WP_Query it retrieves too much info and I only need ...
0
votes
2answers
46 views

How can I tell what category I'm in— in the header?

How can I identify what category the current page is showing in the <head>? Here's the code I have now: <?php if ( is_home() ) { ?> <!-- set up for home page ad --> <?php } ...
0
votes
1answer
2k views

Setting selected term_id with wp_dropdown_categories?

I'm using this code to get the term_id of a custom taxonomy. The drop down does list the terms of the taxonomy Type. When I print the $terms variable I see the term ID of the post i'm editing on the ...
0
votes
1answer
1k views

Display Related Posts by Category in Random

I use one of smthemes and there is this code in theme to show related post. it shows the last created related posts, but I want to show related post by random, How can I do that? global $SMTheme; if ...
0
votes
1answer
191 views

WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1

I have two categories that will always stay the same. They are called "Events" and "Show on frontpage". The latter is a child category to Events. What i want to do is, when fetching posts (using ...
1
vote
0answers
576 views

Refine/Filter the Search Results by Category

I am currently creating the process of a function which allows one to refine results, Namely by category. Similar to themeforest.net refine the search results. When i gave as search term "Hello" and ...
1
vote
1answer
354 views

How can I hide tags on a child-category page, if that tag has not been used?

I have a section of my site where I'm using child-categories and tags to sort content. I'm have a tertiary navigation for the tags (templates/nav-tags.php): <nav class="side left"> <ul ...
0
votes
1answer
149 views

Is it possible to have different header style blog titles in different categories?

For my category titled 'mindset' I would like to use the following style on my post header: background: none repeat scroll 0 0 grey; border-bottom: 5px solid #83990A; However for my 'news' category ...
0
votes
1answer
3k views

Paginate WordPress Category Pages

I am using the following query on my category.php template: <?php $paged = (get_query_var("paged")) ? get_query_var("paged") : 1; query_posts("posts_per_page=2&paged=".$paged); ?> ...
0
votes
1answer
28 views

inserting a category into post

Can you tell me how can I insert a whole category into the specific post. for example: have 4 posts in a category "zanimljivosti" and I want to put that category to be shown inside another post not as ...
1
vote
2answers
791 views

How do you add a category to a post in code

We do a lot of post maintenance outside of the WordPress interface and as a result we need ways of categorising posts. Obviously Wordpress has categories (aka taxonomies) on posts and I plan on using ...
2
votes
1answer
198 views

New categories are now going to 404s

I have a WPMU site with hundreds of blogs on it. We are on 3.4.2 and this is the first time I'm seeing this issue within a few of my sites. Basically, what happens is that I'll create a new category ...
0
votes
1answer
305 views

Filter categories/tags to display in multiple metaboxes for selection in back-end

My site uses a lot of categories and tags for author selection in the back-end. To make it more user friendly for authors I need to arrange the categories and post tags in numerous metaboxes for ...
1
vote
1answer
1k views

Add custom field to all posts in specific category

I want to bulk add a custom field (category) with value (photography) to all posts in a specific category (photography, with Category ID 5). I have used the code below to bulk add a custom field to ...