i had the same problem with one of my sites and i used this hack:
on your themes category.php (or if your doesn’t have one then archive.php )
before the loop part witch is something like this:
if ( have_posts() ) : while ( have_posts() ) : the_post();
add this code
if (is_category()){
$category = $current_category = single_cat_title("", false);
if(isset(get_query_var( 'page' ))){
$page = get_query_var( 'page' );
}
else{
$page = 1;
}
global $wp_query;
query_posts(
array_merge(
array( 'cat' => $category, 'paged' => $page ),
$wp_query->query
)
);
}
this should loop only within the category.
Related Posts:
- How do I check if I linked to a post before I delete it?
- disable password protected page for logged users
- Dynamically update post title in admin page
- How do I use inline SVG in WordPress
- Add a special filter link to All Posts in admin
- duplicate posts when trying to update a post using the wp_insert_post.
- How can I group posts by date on frontpage?
- WordPress Child Category Display All Posts
- Hide comments awaiting moderation from user who submitted the comments
- Sanitizing `wp_editor();` Values for Database, Edit, and Display
- Side by side blog posts that are tied together
- How to display sorted posts in the ‘All Posts’ page
- Changing my permalink structure – will new layout conflict with existing page?
- WordPress blog posts api – get posts by author
- Sorting posts according to the term they belong to
- Sorting posts according to view counts not working
- Get post excerpt and title by specific post ID?
- Will post_exists work for draft posts?
- How can I get a post field value using javascript?
- Count total number across post types
- Related posts loop based on tags AND categories doesn’t work without at least one tag assigned
- Check to see if post is live before displaying the content
- slideshow is not showing in a post call with ajax
- How to automatically apply a category based on the post title?
- How to disable edit post option 12 hours after post publication for contributors?
- Will removing tags move Posts to Trash?
- Getting post content without the navigation
- JSON – Permission Error?
- Update a users role based on number of posts published
- Style Differently Edited Posts
- How can I make a post that belongs to a category or have specific tags, display different from the other single posts?
- Query get post,how to add comment box
- Is it possible to change post id for an already added menu item in WordPress?
- WP Bakery Load More Button loads the same posts
- Search results posts_orderby and ID
- How to convert contact form 7 submission to post after submission? [closed]
- How to render taxonomy in loop of custom post_type
- How to add tags (custom taxonomy) to post class css?
- get_the_category listing in hierarchial order
- How to automate featured posts number? [duplicate]
- SQL Command for restoring trashed comments
- Linking to pages/posts within the site
- Displaying posts that belong to a specific author
- Loop don’t work within single.php page
- Importing posts only – consequences?
- Add Post As a menu Item
- WordPress.com post editor replacement
- WordPress Menu options in the Admin: Posts for the dropdowns
- What is $post->pre_post_content exactly?
- Navigate through the posts using keyboard arrows
- How can I add 2 buttons with shortcode
- Display Related Posts by Category in Random
- Showing posts for today and future
- Display 3 posts with different HTML markup using a loop
- Jumbled writing under a post
- Moved to a new server, backup was a day old and missing 3 posts, anyway to recover them from old host?
- My post does not show up
- Hook save_post_cpt not triggered when custom fields are modified
- Set Default Post as Parent Child (Nested) Relation
- Featured Images most often doesnt appear
- Create a List of Widgets, where each widget holds three attributes
- Why is WordPress showing a blank excerpt for just one of my posts?
- Is there a way to know when a page has been updated and do some action only once?
- Get category slug of the Parent category of a Product
- How to automate creating pages on a hosted wordpress from a local set of folders?
- How to limit wordpress the_excerpt() dynamically
- How to fetch courses in all languages in WordPress?
- Reuse old post ID for new post after deleting post
- Contact Form 7 Shortcode not recognized inside another shortcode
- Create a tree with categories with get_posts()
- WordPress Pods Custom Post Type – separate Media Upload folder for each custom Post Types
- WP posts using index.php instead of single.php
- Display simple html code in post
- How to display particular set of wordpress post on a webpage?
- Center crop the feature image
- Excluding tag Link from html tags in Post content
- Allow users to post their videos to my wordpress website?
- Add in the url attachment loop the wp_link_pages of the post
- Couldn’t view individual post that were in my website
- Add Categories To Custom Post
- Get the category of post
- Display Posts by Categories
- update post category in a new table on frequent change of category
- Edit Posts Page but not category specific pages?
- How can add metabox for post of specific category before save post and after save post [duplicate]
- Problem with jQuery in post body?
- Custom template for different post types
- Posts page template: How can I edit the markup for this?
- Pagination working locally but not on live site
- prevent same wordpress post title
- Remove duplicated posts in the loop if post has more than one category
- get next/previous post name
- Get image paths from RSS feeds
- How do I display the next 3 posts in the sidebar?
- How can to use the players from the Media Widgets in the body of a post to play audio and video files
- How can I display these posts in ascending order?
- Is there any point to using wp_unique_post_slug?
- Undefined Function Fatal Error with Shortcode [closed]
- I have a website issue I am trying to resolve
- How to sort posts alphabetically based on a specific parent category