Now try this, surely it will work
query_posts(“cat=1, 2&showposts=5&post_type=item”);
while(have_posts()) : the_post();
echo $title = get_the_title();
echo $content = get_the_content();
endwhile;
Related Posts:
- exclude category from get_posts?
- Get id of category from drop down menu
- Show post only if match all categories
- Show recent posts from one category on a non-WP site
- get_posts and multiple categories
- Trying to only display 1 category using get_posts
- Get link which associated with a specific category and tag
- Get posts from 2 different categories
- Get posts from specific taxonomy term
- List all posts in a category with query_post() function
- Hooking to walker_nav_menu_start_el to insert list of subpages
- get_posts ignoring ‘category’ and displaying all posts
- How to pull a list of posts in a category while exluding posts in subcategories of the category
- How to Link to Most Recent Custom Post of Same Term
- get_posts() from parent category only using a shortcode
- Exclude parent category when getting category posts by slug
- Exclude categories from homepage not longer working
- Showing posts from 2 categories only on category.php
- get all categories’ latest post in one query
- Load the last post of a category
- get_the_category return empty inside loop
- Get posts base on category ratio of more then two categories
- Media Library Category Exclude Tree
- not empty categories don’t show in menu [closed]
- how to call the category of the post
- How to create a custom loop ordered by Categories on a Page Template?
- How to change category id on get_posts array
- how to ask if in two categorys inside if
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- Get Default Post Category From Settings
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Display list of Sub-Categories and the posts they contain, within one main Category
- Create subdomains for tags and categories
- Categories – create a new separate set right after the default?
- How to get this only in small letters (lowercase)? [closed]
- How to totally get rid of Category in my blog?
- Is there a function to cause empty categories not to show in menus?
- Category Specific Archive
- How do I count how many top level categories there are?
- How to get the number of child categories a specific parent category has?
- Removing category base form links messes up the parent-child behavior
- display most popular tags of category?
- Exclude category from loop not working
- How to list only child categories?
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles
- Cannot add / edit categories to a post anymore
- List archived posts by subcategory
- What’s the Simplest Way to Override/Rewrite the %category% Permalink Structure Tag?
- Show Different Custom Menu on Different Category Pages
- Set a them for all subset of category
- How to query post like normal search would do. within search.php page
- How to get the id from the custom category?
- Category being displayed without base parmalink
- Unwanted Duplicate Product Categories in WooCommerce
- WP didn’t redirect to canonical category URL
- WP admin broken. Not saving catgories or adding categories to menu
- Set colors depending on category
- get_terms function not returning anything
- Getting All Post From Specific category in wpdb
- Single.php Category Post Count
- Jigoshop – only displaying 10 products
- Is there a way to only show Custom Meta Data on single posts from certain catagories
- Show the amount of posts in a tag in a specific category has
- How to get posts by category and by choosing a taxonomy term?
- How to hide category
- Show 10 Sub Categories Per Parent Category Page?
- Conditional category & tag statement
- How to remove the category from post slug
- How to display posts from specific category using get_option function?
- Assign a custom post to a custom taxonomy based on custom field value
- How to detect /category and /tag base pages?
- Is there any better/faster code than this ? It shows the categories that an author had ever posted in
- How to show only child categories using the_category();
- Exclude posts without category from loop
- remove url from categories
- Why in the e-mail notification about a new post published, the category of the post is always: Uncategorized
- How to get immediate children of a ‘term’ parent id through ‘get_terms’?
- Identify a single category and output some code on an archive page
- in post content shortcode works, but hardcoded in same page template doesn’t?
- front end add category to new post
- Only 10 of 233 categories selectable when adding a new post
- When creating category, it creates automatically tag, or, when creating tag, it creates automatically category in same name
- List posts from a category and embed them into a page
- Print categories and most viewed articles
- Get category of a taxonomy for a queries object in a loop
- ACF Gallery with Media Categories – how do display categories and sort
- Loop within category’s posts
- WordPress edit.php category filter to show only posts from direct category and not posts from it child category
- How can I just show portfolio items from 1 category on portfolio page?
- How to add a new child category via an SQL statement?
- Several loop in search result
- categories and sub-categories of posts are wrongly saved in DB
- Link categories to last post
- wp_list_categories not working on my live site
- Recent posts in current category?
- How can I offer different RSS-Feeds by category?
- How to list out post category name and description in page
- Print child category slug nicename