It’s because the default query is only querying for post_type post, you have to explicitly add page to get it to also query for pages:
$args = array(
'cat' => $current,
'post_type' => array( 'page', 'post' )
);
query_posts( $args );
Related Posts:
- Get posts from sites in Multisite?
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- Using categories & “stickyness” together
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- List posts by category exclude current post
- Display only the latest post from multiple categories
- Select category in custom query
- Display one latest post from multiple categories
- Return category slug / title from category ID
- Exclude category from loop not working
- “NOT ONLY IN” taxonomy query operator?
- Post count for category and tag
- Checking for two categories in query_posts
- How to query post like normal search would do. within search.php page
- Query Posts Exclude Entire Category
- how to query posts and auto assign category if post title has keyword
- How do I call posts with a certain tag?
- Modify WordPress SQL Query to pull from within a category
- query order by category
- Get link which associated with a specific category and tag
- Order by category titles
- Have parent category contain only one post?
- List posts in alphabetical order
- Randomly load categories with latest post
- Set colors depending on category
- How do I query_posts in cat=1 AND not in cat=2
- List all posts in a category with query_post() function
- query_post order desc
- Exclude a category from a query that includes its parent category
- Show the latest post from child category?
- Pagination on category.php and tag.php not working
- Problem with different query loops (and “main loop”) on category template page!
- query_posts not reading correct categories
- Pagination for query_posts();
- Posts from a category on homepage with category archieves page default css
- function query_posts disabling current_page_menu class
- query_posts by category_name and custom taxonomy
- wordpress taxonomy query posts
- PHP dynamical conditional post display
- Posts of specific category on page and excluded from index.htm
- new WP_Query issues
- how can i hide category?
- Displaying links to all posts of the same category on the post page
- Post not found when filtered by category ID
- Exclude categories from postquery
- Sort posts alphabetically by category/custom taxonomy, insert divider between different types
- Show posts from category specified using a custom field
- query_post problem
- Add class to current post in query_post
- Different post slug based on archive
- Pagination does not work with query_posts()
- Assign a class to first element in category in loop
- How to display products with multiple conditions, product_id and category_id
- Query post only from categories that have subcategories
- Displaying posts by year
- Paginate WordPress Category Pages
- How to have a category not show up in query post with page panigation?
- Showing one post from each category, paged?
- Combine two taxonomies in a hierarchical tree
- Get current category details the user is currently on in category.php
- Get the number of posts in a named category, outside the loop
- Test if post has a category
- Highlight current category in wp_list_categories
- How to select product category while adding new product in woocommerce? [closed]
- WordPress previous_post_link exclude posts with multiple categories
- Getting categories id for all products in cart
- Show archives by year from just one category
- Combining post categories and link categories?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Customize WordPress widget – Product Category
- Display categories with child category separated by letter
- How to make the link to the category for a post go to corresponding page number in archive?
- Shortcode interpreted as text
- Grouping post-types in loop
- display a widget on specific category and its sub categories
- So my theme doesn’t have a category.php file
- Custom page category taxonomy 404
- Template hierarchy: how to let category.php conditionally-load archive.php?
- Getting Category Children
- Break down output of wp_list_categories
- How can i show categories of custom post
- How can assign posting to Subscriber to specific category?
- how to style show_count in wp_list_categories()
- Page category filter in admin dashboard
- Remove WP Core canonical for category pagination
- Create categories manually in database
- how to display specific Category if post have more one Category?
- Is there a way to fetch the category of a page when using wp_list_pages?
- How to fix 404 error in pagination in categories of woocommerce with common url base /shop/?
- How to delete WooCommerce categories in bulk that only have one product
- Product Category page showing all products
- Display List of Categories Within a Custom Taxonomy
- How to remove specific categories from tag archives?
- How can I allow people to ‘subscribe’ to categories?
- get_category_parents displays an empty category
- Why is my post categories not displaying?
- Sort categories by meta value
- Unassign uncategorized from post with 2 or more categories
- Having Trouble With get_category_by_slug In a Custom Function
- How to load/include category templates based on conditionals?