You need to add Category Parameters to your query array.
$arguments = array(
'post_type' => 'post',
'post_status' => 'publish',
'paged' => $paged,
'showposts' => $postcount,
'category_name'=> 'your-category-slug'
);
Related Posts:
- Problem with ‘post__not_in’
- Sort X categories by last update and show image
- using post__in allow duplicate post id
- Using dynamic conditions in ‘posts_where’ filter
- How to limit search to first letter of title?
- Counter code for paginated category pages in wordpress
- WordPress Search Filter Only for Page with Child of Child of Child of Child of Child
- pagination in author.php template returns 404 error
- How to modify the query to exclude posts by slug?
- Adding Variables to post query
- Tricky WP Query
- tax_query operator woes
- query_posts() ALWAYS displays something?
- Using ajax with paging and a custom sub-query
- Each post is showing twice in my custom query…?
- post_parent array doesn’t work
- how to store wordpress loop in array?
- Include current post into loop
- Exclude posts by post meta value
- WordPress query reverse order
- Can I use WP_Query one time and then filter the results multiple times
- Different layout based on post amount?
- How to solve this without flushing the rewrite rules for each post query the visitor triggers?
- How to check a list or feed of all posts under a category and tag?
- Best Query for blog posts
- Ordering of posts, 2020 Year showing as next event when should be last
- orderby not working for query_posts using array of IDs
- How do I find the first item in the post array?
- posts_per_page no limit
- Get the ID of the latest post
- WP_Query vs get_posts
- Query posts by custom taxonomy ID
- How to return results of a get_posts() in explicitly defined order
- Query posts: how to exclude results if post is in multiple categories
- query_posts ->using meta_compare / where meta value is smaller or greater or equals
- How to order posts by descending comment count on taxonomy page?
- WP 5.8 “Query Loop” block: where to place custom query?
- Pagination on archive.php page
- order post my meta value m/d/y format with year as included value
- _wp_page_template to dynamically use template
- Schedule Sticky Posts
- How to display liked posts of current user in wordpress?
- Problem with single-page for my custom post
- How to make the list of post and load on same page with sub-pages [closed]
- How to get 4 Posts after the 5 most recent ones
- How do you query wordpress posts using a math formula between multiple meta field values?
- Page navigation doesn’t show when query category
- How to fetch all posts in a category that were published between two given dates?
- Exclude posts with empty post_content in wp_query
- How do I make archives.php for one category only?
- making random query button using $_GET
- Is it possible to query_posts using post__in and then Loop through them in the ordered they were queried?
- How do I change the default sort order of a custom column on the posts page?
- Minimize database queries to user tables?
- WordPress pagination showing same posts on each page
- pass query string on url to filter media
- 3 Posts in Loop, Show Stickies First
- Error sending array of inputs
- Authors List page – How to include only those with wp_user_level as Author
- Adding conditional content to single post-type template
- Show Blogroll of another WordPress site
- Why this code causes infinite loop?
- query_posts() – problem with “s” parameter
- Page title in post query
- Question about querying posts
- Currently using a query_posts() in my theme – want to use a request filter in stead
- How to list most popular post
- Breadcrumbs stop working on a specific template file
- How can I query for all children posts regardless of parent
- INSERT in table row fatal error
- function query_posts disabling current_page_menu class
- How to reverse post navigation at bottom of post
- WP-API: get posts in multiple categories
- Getting custom post types to properly display alphabetically
- Custom post query error
- Multiple instances of query_posts
- Having an issue doing a WP_Query with post_content and category__and
- How to get any type posts include attachments by ids?
- Create a Loop with Posts Ordered by Most Recent Comments
- Filter products on category AND tag
- pre_user_query vs pre_get_posts
- Pagination doesn’t work in query post in tag template
- Specifying image size used in template the_content
- allow user to edit posts made by others users based on the user role
- My entry results are not consistently alphabetized
- WP Query Relations / Compare
- wp_query – Modify $query to include duplicate content
- Optimising specific Query with ACF meta objects
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- query_posts result differs from wp_query request result
- Creating pages and getting their values from the database table
- Collect posts from last 48 hours
- The_content display a different content from a previous loop
- How to go to tag archives using a form
- Run second query on page based on author of the first query
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Why doesn’t this page query work?
- Sort posts with multiple meta_keys
- Create “archives by year and week” by category template
- Sort Posts Alphabetically Based on Specific Category (Divi)