The way i’d do it:
First – create a page in the wp admin. Then create a file like mypage.php. Save it in your theme and a the top of it, add this to tell wordpress that this is a custom page template:
<?php /* Template Name: Custompage */ get_header(); ?>
Note: it’ll also already call your header.
Then insert a custom loop using get_posts() like this:
<?php global $post; // required
$args = array('category' => 9); // include category 9
$custom_posts = get_posts($args);
foreach($custom_posts as $post) : setup_postdata($post);
// put here what you want to appear for each post like:
//the title:
the_title();
// an excerpt:
the_excerpt();
//and so on...
endforeach;
?>
Then last, get back to the admin and in your page’s options you should have a drop down menu in the “page attributes” box. Select the “Custompage” template or whatever name you gave it.
Related Posts:
- Paginations in Category Page Leads to Sample Pages
- How to check if I’m on the last page of posts?
- Display posts from the same category using next/previous post link
- How can I create a category landing page followed by pages of posts?
- Display all posts from all categories with pagination
- Show Previous/Next Posts navigation only inside the same category
- Category page showing posts from all categories
- Loop with Dynamic Categories
- Remove “Category Archives: title” at the top of a category page [duplicate]
- Page navigation within a category
- Listing all posts from current category on page
- Show posts of one category only with Custom Taxonomy on single.php
- Archive pagination causing 404 with permalinks structure
- Custom category template pagination problem
- How can i call an article from each category and still paginate properly?
- Force category-slug.php to show page, even if it doesn’t exist
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- Duplicate Category and Page URL loads Category instead of the Page
- Add a specific category at a specific place to the menu that uses wp_list_pages
- in_category() works in single.php but not in page.php?
- Categories vs. Page Site Organization
- How do I automatically put categories and their descriptions on a WP Page?
- 3 Columns, 3 Categories, One Archive, and Pagination
- ?cat=-1 Indexed Versions Of Homepage
- editing fonts of category links from the_category() funtion
- Is it possible to restrict viewing of category PAGE to logged in users only?
- Pagination for category slug returns 404 when page >= 2
- How to make 2 tag feeds show up on 1 page?
- Pagination not visible on woocommerce’s category page
- Search in custom post type AND in pages with category
- Pagination is not working properly in Product Category/Tag pages
- Restoring default article pagination on archives – Removing custom limits
- The default code for “posts_nav_link” on category.php isn’t working
- Why category.php throw 404 in wordpress while calling paginate_links()?
- Paging not working in category.php
- Give a page priority over a category that has the same name?
- Multiple Loops on category.php with pagination on last loop
- Different banner for different section
- Category archives with monthly pagination
- Putting a Category of posts under a Page
- category pagination got broken suddenly
- How can you change the permalink for pages?
- Pagination for ajax category filter
- Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?
- Category.php loads first before page.php?
- Automatically redirect a page to a category that share the same slug
- WordPress alphabetical A-Z custom post type post result display
- How to create a subcategory to a PAGE on WP?
- How to show 1-5 of X Total Results
- How to show 5 posts from specific category on related page?
- Pagination on category.php and tag.php not working
- How to do paging in the loop?
- How do I get category and page ID’s?
- Pagination for query_posts();
- How do I attach a page to a category similar to how we attach media to a post?
- How can I display tags as categories?
- Trying to create a Categorised Index (archive?) to use as my Home Page
- Getting the Most Recent Posts from Multiple Categories
- Pagination doesn’t work on multiple categories
- custom query for both category and pages using global $wpdb;
- Pagination breaks on child-categories, works fine on parent-category
- Pagination for a category
- Conditional category query breaking?
- Custom Portfolio Page
- Category pagination not working
- How do I remove pagination from just some Categories?
- How to use category slug with a regular page
- remove url from categories
- Problem with pagination block in Gutenberg
- how to show all posts of each category in pages
- How to redirect to category page if page does not exists?
- Page category filter in admin dashboard
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- Pagination for custom categories template
- Template category.php with page (no posts)
- Showing the category hierarchy as clicked in WordPress, with image and desc
- Unable to create pagination for Category.php
- displaying one category on one page
- “Next posts” of a category do not call category.php
- Need help to structure our a complex hierarchy
- Adding a category view to a page
- Removin /page/2 from pagination
- Category foreach Paging
- Transfering static site to wordpress and retaining category by month paginations
- WordPress Numeric Pagination with Query String [duplicate]
- date.php shows all posts. how to fix it?
- Twenty Eleven Theme [duplicate]
- wordpress category.php query for featured news item, broken pagination and repeating posts
- Paginating a list of all posts collected by category titles
- Return selected categories only in custom page meta box?
- Paginate WordPress Category Pages
- Need help with category page customization meeting certain condition
- Show custom menu in category and its posts
- Showing one post from each category, paged?
- Can i know if it is Category first page or 5th?
- Exclude posts from certain category breaks custom pagination
- i want to add pagination list of categories
- Link to page in category
- How to display posts by author in a separate page, other than author.php?
- wordpress category rewrite rule with pagination