are you using global $query_string;
before the query?
so that the full line looks like:
<?php global $query_string; query_posts($query_string . '&cat=-10,-12'); ?>
alternatively, you could try:
<?php query_posts('cat=-10,-12&paged='.get_query_var('paged')); ?>
Related Posts:
- Is it possible to Schedule Attachments in WordPress?
- Allow variable amount of comments before pagination
- Is post ID number always incremental n+
- post__in for get_posts with a dynamic array
- Check if post has children or not
- Create custom page in WooCommerce
- Duplicate posts
- HTML code in Custom field
- How to hide a post from ‘Recent Posts’ widget?
- Hide add new page button
- get_next_post() not working
- Create a separate JS application for an individual post?
- post_parent is 0 when uploading new files
- Redirection to taxonomy posts list after post submit.
- Frontend Post Excerpt field mapping
- custom post type grid with content in lightbox [closed]
- Divide Loop Into Days & Categories
- “next_posts_link” and “previous_posts_link” display me NOTHING
- Can I set and show “important” post in my blog?
- Add Post Tags to Body Class
- WordPress – Hide posts in admin from user who did not write them
- Understanding and using metaboxes in posts
- How to display different number of posts
- What part of template to edit to remove category name from the top of posts?
- Register post status, exclude from searches
- How to give capability (publish contributors posts) to author role?
- Ajax Dynamic Archives not showing correct results
- Load post attached images on a single page site with fancybox
- Format the Layout of Images In The Edit Post Textarea?
- Choose whether to automatically add a taxonomy with the same name as the post
- Which WordPress hook fires after post content loaded?
- Enable Comments Box On Custom Post Type
- Get Posts Under Custom Taxonomy
- Integrate OpenStreetMap on WordPress
- Prevent additional top level categories but allow more children
- how do i add posts-page slug before posts slug in permalinks
- Admin – create custom post status and display above table
- wp_query random post
- the_permalink() not working in a root installation
- Possible to alternate between two loops
- How to get a post’s content? [closed]
- Hide posts belongs to few categories in homepage
- Call Web Services on post first publish
- Why does a published post only displays the title and not the content in the site? [closed]
- Every second post different class in blog view
- Get post ID from a link
- Is codex right on deleting post?
- WP text styles not coming through to actual post
- Run query_posts if SESSION is empty?
- Relative number of post in category
- Change post author without using wp_update_post()
- WordPress post page not working properly
- Changing Post Tag Color Based On Post Count
- Programatically adding custom filters to post list
- Is it possible to automatically publish a post once a woo-commerce product is published?
- Post is blank when I click on the link
- Update all posts in a loop everyday
- Retrieve post in AJAX Callback
- Change url-structure for wordpress pages – pages in strucutre not top-level
- Adding JS functionality to the Publish button in wp-admin/post.php
- Get postlist for each category using query_posts?
- How to save posts position on homepage after random function?
- Remove Featured Image from posts in specific category?
- Why does WordPress search returns same number of results for every search query?
- links to posts not working on homepage
- Posts and order
- Post Templates and Post ID’s
- How to embed custom HTML code with no plugins?
- Nest Next and Previous in a href with class that has a background image
- Override WordPress core post-template.php block template
- Delete media from the post but keep my featured image and post
- Single Post function to display all single post images in a carousel
- Every time I try accessing a post it redirects me to the feed
- Count singular post views automatically
- Pagination (on the static front page) shows always the same posts
- Loop and output 4 rows of posts on home page
- Bulk Post update_post_meta
- More Than 50K Categories and WordPress Admin Panel Stop Showing Categories and Posts
- Hiding the name of the user who is currently editing
- Loop through all posts showing duplicates
- Random order of the 5 most popular posts
- Embed image in post from external url
- Code works on a page but not in a widget
- List posts of assigned categories in list of all categories on single.php
- Display result of custom form
- How can I choose and change a post title at random from an array when it is published?
- How to show the posts list into a static page? Problems to use the loop into a static page
- Get post title by Alphabet
- Make a paginated article (for easier reading on mobile)
- WordPress post text starts newline after 93 characters
- Displaying Results From Custom Taxonomy Query
- new blog post does not appear in blog after publishing
- wordpress taxonomy results
- Deleting first four characters from all Post Titles
- Deleling wordpress posts permanently still have IDs
- wp trim function not working
- Custom post page has attributes of latest post [closed]
- How to make “my posts” page
- Custom Post-Rename Function Does Not Function in WordPress 6.x
- Import alt text in set_post_thumbnail