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.
1
vote
2answers
2k views
Select category in custom query
I'm sure this question is asked alot, but I cannot figure it out, since all the different ways to query posts are confusing me..
Here is my current code.
How can I tell the code to only get posts ...
1
vote
2answers
11k views
How do I make the category template display full posts instead of partial posts?
I'm using Wordpress 3.0.1 with the Twenty Ten theme. I'm trying to change the way the posts in the Category view are displayed (i.e. by going to a url like mywebsite.com/category/mycategory). ...
0
votes
0answers
22 views
Add Custom Post Type Categories to General Categories
I've created three custom post types. I want them seen as general categories. I could not find a solution, can anybody help me?
Thank you.
0
votes
1answer
26 views
Link each category to last post
I would like that each category link to the last post of each category.
category 1 ----> link to the last post of category 1
category 2 ----> link to the last post of category 2
category 3 ----> ...
0
votes
1answer
42 views
Editing “Kahi's Highlight Used Categories” plugin code - highlighting parent and child category in post page
I´m trying to highlight (using css), the child and parent categories in use in the selected post.
So I´ve found this plugin "Kahi's Highlight Used Categories".
Plugin´s website: ...
0
votes
0answers
10 views
How to add a custom field to my custom taxonomy? [duplicate]
I need a new field above "Description". It will be a short description for my custom taxonomy.
So I would like this field only for my custom taxonomy, and not to all categories.
How to do that?
0
votes
1answer
72 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
220 views
Advanced Custom Fields: Using category as a rule, before publishing new post?
I am using Advanced Custom Fields plugin to assign some fields to posts with a certain category, but the fields does not appear before I publish the post.
I have made some links on the dashboard, so ...
0
votes
2answers
130 views
Display all posts from specific categories on a page
I want to display all posts from specific categories on a single page.
Therefore I edited the page.php file in my theme folder.
I added an 'if-clause' to check which page currently being displayed and ...
0
votes
1answer
234 views
How To Find Out Wordpress Category Table in MYSQL?
I know WordPress stores all post data in 'wp_posts' table. But here WordPress not define any category id or reference related with it.
Please let me know, how 'wp_posts' table find out exact ...
0
votes
1answer
129 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
1answer
520 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
1answer
662 views
Use template of parent category for single post sub-categories
I have single post templates in a folder in my child theme marked "single". I need the sub categories to use the same template as their parent. I've read a dozen tutorials all of which were more than ...
0
votes
1answer
359 views
I use same slug name for category and page
I added one slug and page with the same name and they worked fine, but when creating a second WP forced me to rename the page (being created after the category) with an additional "-2" how to clear ...
0
votes
1answer
94 views
Get post related on category
it's a catalog website for different product. I need a function that will get the category of the selected product, and get all the product from that category
Let see an example. A table, is in wood ...
0
votes
4answers
4k views
Get all categories and posts in those categories
I am looking for a solution that allows me to print the following:
Cat 1 Cat 2 Cat 3
Post 1 Post 1 Post 1
Post 2 Post 2 Post 2
Post 3 Post ...
0
votes
2answers
442 views
Custom Post Type, Two categories, Two columns with Pagination
I searching a lot to found a way solves that and no luck at least.
Sorry for my unpulish english, I do my best explaining my issue.
I have a Custom Post Type called 'Events' this have two categories ...
0
votes
1answer
725 views
Query from different categories showing one post per category [closed]
need some help for a special custom query.
I'm trying to build a single query to retrieve some posts from different categories instead of running several loop.
Is there a clean way to do that?
I ...
0
votes
3answers
1k views
Using same slug name for a page and category
I know it isn't good practice but I'm considering using same name slugs for some pages and categories on a site that I'm working on. It's a small site and it doesn't seem to affect anything in ...
0
votes
1answer
755 views
Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
I'm trying to get the terms of a taxonomy (kind) and the number of content they have but only for a specific category (get_parent_page_slug() = city name = category slug). This is what I have so far:
...
0
votes
2answers
637 views
Display most recent post in category instead of archive?
I've successfully redirected my blog page to my most recent post - i.e. so when you click the 'blog' link in the nav it goes to the most recent post page and you can click next/prev buttons to ...
0
votes
2answers
449 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
278 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 ...
0
votes
1answer
614 views
How to make category RSS feeds show full content
I'm trying to fix a friend's feed to show full content in the category feed instead of only a summary. He's already done the setting bit, but it still doesn't seem to work. Thoughts?
EDIT: The feed ...
0
votes
2answers
829 views
Category Specific Archive
I'm trying to display a monthly archive but only for a certain category. How can I do this?
0
votes
1answer
375 views
Query the Loop without breaking it
Im trying to make different querys in my category like one with a offset of post and one that shows one post but while it continues to go through the loop, this is what i have but the loop keeps ...
0
votes
1answer
837 views
Fixing category count
Somehow my post counts are incorrect due to inserting rows via php. I have the following code to update the count, is it correct?
global $wpdb;
$result = mysql_query("SELECT term_id,term_taxonomy_id ...
0
votes
1answer
1k views
Regex problem in an add_rewrite_rule
I'm working on a category page for a custom post type called articles in WP 3.1, and I'm having some trouble with extracting the page number.
The url: /articles/category/background/
Currently, what ...
0
votes
1answer
169 views
Wordpress MU 2.9.2 to 3.0.5 changes to category.php
In the latest version of WP I see the category.php page is now using edit-tags.php.
The version Im running seems to have an issue with the search feature on this page whereas the new version doesnt. ...
0
votes
1answer
564 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
3answers
346 views
How can I create a permalink with two categories, with the order based on the parent category?
Basically, I'd like to create a category permalink like example.com/books/adventure without having to make adventure a child-category because it will apply to other categories as well.
So the end ...
0
votes
3answers
2k views
Category links suddenly started giving 404 errors
My Wordpress blog suddenly seems to have started giving me 404 errors when accessing category pages. For example, http://blog.rtwilson.com/category/tok-related/. Interestingly, this doesn't happen for ...
0
votes
1answer
160 views
How can i call an article from each category and still paginate properly?
I want to have my front page, with three columns, each assigned to a different category. Ideally I would like to query to fetch one post, per column, per page where possible, leaving the column empty ...
0
votes
3answers
528 views
Filtering Children of the “uncategorized” Category out of the Loop?
I have some utility categories that are only used by my theme. To help separate these categories I place them all as children of uncategorized.
How can I make sure that any call to ...
-1
votes
2answers
226 views
Moving Categories submenu to Media, but still opens Posts menu
I'm developing a very media-centered site with WordPress and am using the default categories and tags on uploaded media using, in part this plugin Media Categories.
I am displaying a sub-menu item ...
-1
votes
2answers
658 views
Auto add pages to category menu
I have created a custom post type called Products, on the product pages i have a menu in the left sidebar. This menu is made up of categories for the products.
Is it possible to have my products ...