The short answer is that the value for category
should be an array of IDs.
The longer answer is that it is rarely appropriate to use query_posts
at all.
Related Posts:
- Display content from a specific category
- Exclude category on blog list page
- Changing next and previous post link text
- Blog Posts not showing title
- Adding parent pages to posts
- How do I get blog posts to appear within CMS?
- Apply a style for 4 blogs and another style for the next 4 blogs in wordpress blog page?
- Automatic blog page with custom design [closed]
- How to set a certain Custom Template to a Single Blog Post
- Multiple Blog Pages
- “Blog pages show at most” in setting not working
- WordPress display page information rather than post
- How to put the WordPress blog into theme
- Why the blog posts is not showing?
- WP Blog Page Problems – Been stuck for a week
- Link post to blog from a static page
- Posts page template: How can I edit the markup for this?
- Page updates appear in Preview but not live version?
- Overwrite URL on blog posts
- Older entries link within a category page
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to implement default comment section in theme template?
- How to add paraent in Blog post URL in wordpress
- I have a website issue I am trying to resolve
- Is there an if statement that can determine if a post in the loop is the last post?
- Access post from post id in URL
- WP_Query: Why is sticky post not first item in loop?
- How to mark articles as read?
- Is there a way to disable the sticky posts feature?
- How to remove Nextpage tag inside posts text depending of utm_campaign
- using slug instead of ID in admin edit post url
- Can I load posts via Ajax?
- WooCommerce – Create Products Programatically [closed]
- Code to auto expire posts after 30 days
- Search not working with title and content
- Filter posts by author and category simultaneously
- WordPress Delete hook with wp_delete_post function?
- How to use alternate post layout at key points in post loop?
- Changing publish date does not update post order
- Hide Post comments when displayed via WP_Query
- Show all post titles
- Posts are not showing up on particular category
- Differentiate between posts and pages in search results
- WordPress Theory Lesson – Image Columns within posts with alignment?
- Uppercase first sentence in every post
- How to Orderby Comments by post title?
- If modified on same day, show only time
- How is a gallery associated with some post in database?
- Page Navigation for list of post
- Extracting post categories
- Exclude post_meta from Rest API Endpoint
- impreza portfolio display/view blank page
- Automatically add custom fields value to wordpress post
- How to use format post in a pertinent way
- Loading post with Ajax
- How to create media library for each user?
- My wordpress based site is publishing the same post twice
- When creating a post how do you select the format?
- How can I post exact same post but with a few things changed? (with some sort of Automation)
- Loop doesn’t show title of second post and posts thereafter
- Which PHP files should I edit for changing POSTS list and view pages?
- How to add add more properties to WP_Post object in search results loop
- How to get current post ID in functions.php
- How to show all posts by author on buddypress profile with navigation
- Get URL from all images in a post
- Change the default blog post post attribute template name from “default template” to something else
- How to enable custom Shortcodes in Post Category Description? [duplicate]
- Display post by click on the link
- How to call posts under a specific category on static front page?
- Image on rss feed on post
- Limiting post list by taxonomy
- select post preview image from nextgen gallery
- WP_Query articles order by offset in collumns
- sort posts by getPostViews in functions.php
- Making a wordpress page print friendly
- Will multiple category descriptions effect my search engine optimization?
- Different post views for different category views
- “Home” Page now only displaying the single latest post
- How to select a category automatically based on a word in WordPress post title?
- Post feature image after post title for single post
- Add a second rich text input to post editor, and make that content available in post template
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Create/Set Category as Title of Post
- Blocked posts in network tab
- Post images are not displayed in media library
- How can we print out total number of posts filtered by post type and category?
- All my posts don’t show, only the headline is displayed on the homepage
- How Can I Limit Users to Post Creation For My Frontend Theme?
- how to create add-able metaboxes in wordpress post edit screen?
- Daily posts like an archive
- Retrieve latest post by multiple categories with ID
- How to display a paginated list of posts from one category on a page? [duplicate]
- standard wpGallery for post won’t work
- custom sort posts in archive/taxanomy page
- How remove “recent comments” title without modifying code? [closed]
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- remove description in colum title post
- Show some texts in posts belonging to Specific category
- Undefined Function Fatal Error with Shortcode [closed]
- How to sort posts alphabetically based on a specific parent category