There is no category
argument:
- cat (int) – use category id.
- category_name (string) – use category slug (NOT name).
- category__and (array) – use category id.
- category__in (array) – use category id.
- category__not_in (array) – use category id.
You want to be using the category_name
argument– note that it takes the slug not the name–, though I’d recommend using the ID
.
And…
Related Posts:
- Display all posts from specific categories on a page
- How to show list of posts by author and category?
- Divide Loop Into Days & Categories
- How to filter posts that belong to a specific category only if that is the only category
- Display post category in foreach loop with category link
- Child_of not displaying all children posts.. via get_posts
- Exclude category from
- Pulling in post category and children within category
- Listing Specific Categories from Current Post with Depth
- How to make the first post in the loop be styled like a “new / featured” post?
- How do I stop the loop from repeating in my category template?
- get_the_category listing in hierarchial order
- Showing categories and subcategories with posts
- WP_Query of Category Not Showing First Post
- Get post category as a separate string and url
- posts going to 2 pages/categories only show up in 1
- Get current taxonomy and display query accordingly
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Current post categories and subcatecories outside of the loop
- How to distinguish pages created by woocommerce?
- How to show category image if no featured image is set?
- Display new posts categories in separated divs
- List Authors For Current Category
- Multiple Post Repeat for Related Post Loop by Category
- Show post if in category
- Displaying categories items among posts
- Make assigning post to a specific category equivalent to assigning it to all categories
- Show all posts in category
- View post with specific category id and name which I selected in the backend (drop-down option)
- Get Posts Under Custom Taxonomy
- Getting Position of a post in a category
- Display only posts from a specific parent category
- Get the author of the latest revision
- How can I specify a category post on my home page
- Strange switch_to_blog() issue
- Multiple loops in same page, without duplicate content
- Use template of parent category for single post sub-categories
- loop not displaying posts on custom template page
- How to search only by post title and category?
- Permalink Settings: optional settings doesn’t apply to editor
- Random post category URL
- How can i sort the categories by ID
- Display posts in three columns by category
- Add ajax load more function using WP API
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- Adding specific post category between posts in loop
- Properly display posts on homepage
- Display post X of Y in category
- How to exclude latest x posts from a paginated query?
- Pausing and Resuming WP_Query results
- How to : pagination in 3 different custom loops on the same page
- Sharing post from archive page (loop) doesn’t work
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Disable sticky option for specific categories
- date issue with category post retrival
- How to make multiple sections in home pulling posts category wise?
- Multiple Loops Breaking Pages
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- Remove current category from post but display all others
- How do I show posts from another wordpress installation?
- How to only publish posts with image in it
- How to show a custom taxonomy in the theme?
- How to import nested categories from XML file?
- Migrate posts from category and sub-category via SQL
- Posts Missing in Dashboard after update
- Display post number by category
- How to get post with slug and exclude categories
- Accessing Post ID Within Loop
- Retrieving posts by their date and category
- linking to post outside the loop
- WordPress displays post on subcategory only
- Defining ‘last’ class on foreach blog posts
- Categories Listing and Highlighting current category item
- Display hierarchical categories/sub-categories for a single post only
- Want to change the post every three days with in specific category
- Author post count in category
- Why do I have categories with duplicate slugs?
- How can I get the last post while on the first post for pagination? As if it were infinite
- Automatic Table of contents with categories and posts
- Is it possible to remove actual post pages in wordpress but keep them in categories
- Need help with hiding an image within a post in a category
- How to get post count including nested categories
- How to filter out post from a category not its subcategory in wordpress dashboard
- Advanced Post Display/Pagination/Ordering
- Post of a specific category – not to be seen in paging previous/next post
- How to show main category related to that post
- Display selected category on post page
- How to use in_category?
- About number of posts in selected category
- Sort by category and then date?
- Loop not allowing infinite scroll after post per page limit
- Customise the appearance of 4 specific post ID’s within the loop?
- Category page shows “No Posts” but I do have two assigned
- Exclude a ‘portfolio’ custom category?
- ‘get_previous_post’ in same category returning (!empty) when no previous post in category exists
- How do I create a template page to show 3 blog posts?
- excerpt in template for specific page
- Only show posts belonging to multiple cateogries at same time
- Wrap posts from a category in HTML
- blog post displaying within older post – loop issue?