You can use the get_posts() function and create a custom template file for that! This way you can take advantage of all the arguments that function makes use of.
For example, to show all posts from a category that has id=47 you would do the following:
<ul>
<?php
global $post;
$args = array( 'numberposts' => 999, 'category' => 47, 'orderby' => 'post_date', 'order' => 'DESC',);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
This will echo the titles of 999 posts (each title linking to the post itself) and it will format them as a list with the <ul>
, <li>
that we used.
Of course you’ll have to customize that to suit your use-case but this is a working principal.
I hope that helps!
Cheers,
Ari.
Related Posts:
- Order get_terms() By Custom Field
- How to Change the Categories Order in the Admin Dashboard?
- Sort posts by tags in category pages
- Display all posts in category, with specific tag posts at top
- I want to order categories based upon the latest post time
- WordPress Ordering Problem. How to fix ordering 1-10-100 issue?
- Order posts by category name
- Custom order categories in admin dashboard
- Arrange posts by date in front page
- How to redefine the sorting of product categories by menu_order?
- Order categories by name or view count
- WooCommerce – How to show specific category first-rest of products-specific category last
- Custom taxonomy/category order
- wp e-commerce group product by category [closed]
- List posts in alphabetical order
- Custom loop of a single category, cannot order by date. What am I missing?
- How to change the order of the subcategory and category in a post?
- How do order product categories – on a parent category page – in Woocommerce?
- Natural sort / ordering wp_dropdown_categories
- Sort posts alphabetically by category/custom taxonomy, insert divider between different types
- How can I order all subcategories alphabetical independent of the parent categories?
- Ordering terms whilst in loop
- Modifying category order
- Configure query with multiple categories in a custom order?
- $args Orderby The number
- Woocommerce custom taxonomy order
- Woocommerce – Display product category of product in Orders page
- Post list category plugin alphabetical order [closed]
- Get all categories and posts in those categories
- How to display non-hierarchical taxonomy as terms with checkboxes?
- 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 find all posts without category and assign the “Uncategorized”?
- How to Override default update_count_callback for category
- WordPress previous_post_link exclude posts with multiple categories
- Is it possible to put tags and category information in the post as text?
- Let visitors post comments on category page
- Is it possible to post with Word 2007 via XML-RPC and limit categories by user?
- how to get the categories for a single post in a hierarchical way
- Getting categories id for all products in cart
- How to Filter categories in the permalink structure
- Is there a cleaner way to get post count for a category in category.php?
- products nested by subcategories in a current category archive
- Show archives by year from just one category
- Post count for category and tag
- Get current_parent_category in a loop or Cat ancestor- big problem
- Combining post categories and link categories?
- Is having thousands of unique categories a concern?
- Customize WordPress widget – Product Category
- Display categories with child category separated by letter
- Trying to add cat_ID to array for showing an image for specific Category
- Hidde certain category from post meta
- How to add a post without assigning to a category?
- List all posts in a category with query_post() function
- How to change amount of categories listed on dashboard?
- How to display parents category and child category separately for a specific post?
- Display random categories
- Get a count of how many times a term or a category is used in posts
- Exclude a category name using cat name
- Get custom title if category
- Post by category+author not working!
- Custom template for sub-sub-categories
- Simple way to style posts of a single category differently in the loop and in single
- show WordPress categories with different Structure
- How to remove the tilte “category:category name”?
- Advanced permalinks structure
- Subcategory Page URL to Display Only Posts from that Subcategory?
- How can I display image child category in parent
- Limit categories to hierarchal depth of 2
- Custom Taxonomy Isotope Grid – Filter Buttons Not Working
- Shop Category Pages missing s
- ADD DYNAMIC attribute for category to accordion
- Unable to add multiple categories to a post in WordPress
- How to display custom fields as table in Woocommerce
- make color of headline depend on category?
- Menu with category 2 category combined
- Some subcategories not working on custom portfolio sort
- Link For Portfolio Categories
- Displaying Category in sidebar post widget but not in the loop on home
- Create duplicate category page with content variations
- Media Categories as Classes on WordPress Gallery Shortcode
- Category Template for Custom Post Type
- Loop Through Categories in Custom Field
- get categories the post was in and just been removed from
- Loop through posts of CatA and store value of CatB in separate array
- Highlight posts that belong to current sub category
- How to add an empty entry to masonry?
- How to enable admins/editors to set a featured image for specific category?
- Problem with single posts not showing correct category sidebar
- Multiple Categories under one URL, where ‘Front Page’ is used already
- finding out the top 5 source ( source is a custom taxonomy ), in a given category
- Having Trouble With get_category_by_slug In a Custom Function
- WordPress category gives 404 after moving to a different domain
- How to load/include category templates based on conditionals?
- Why does WordPress append a bullet to my category tag?
- how to implement next/prev within category archive?
- how do I exclude a category foreach