You don’t need to create a page template to list the project post type, just go to /project/ and you’ll have a full date ordered listing.
The template powering that page will be determined as follows:
- archive-project.php
- archive.php
- index.php
So create an archive-project.php in your theme. Using this you can specify to list only the titles.
Finally, on each post check to see if the year of the data has changed, and if so, echo the year out with whichever markup you please, and continue as usual, making note to echo the year out on the first project post.
Related Posts:
- Custom post type pagination 404 fix?
- Adding content to archive and taxonomy pages on custom post types?
- Filtering a custom post type by custom taxonomy in archive template
- get term archive url / link
- How to get the custom post type from an archive page?
- How to remove “Archive:” label from archive title
- $query->set in pre_get_posts is unintentionally affecting the backend
- Pagination throws 404 error on custom taxonomy archive pages
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Display Editable Text Above CPT Archive Listings
- Custom Post Type Archives with 0 Posts Redirects as 404
- Archive page with multiple taxonomies rewrite
- Archive page…limiting posts per page
- WP 3.1 – archive pages for custom content types possible now without a plugin?
- Date archives for custom post type
- Custom Post Type Archive URL takes over page URL
- Custom comment status possible?
- How to Add Pages Under Custom Post Type URL Structure?
- paginate function in archive for custom-post-type
- Include Custom Posts Type in Year/Month/Date Archive
- where can I see my custom post type archive template?
- Call different archive page based on post type
- How to create archive page for taxonomy terms within custom post type
- Category and post tag archives do not include posts from custom post type
- How to list custom post types?
- Custom Post Types and archives
- Display CPT description on archive.php pages for all CPT
- When ‘is_post_type_archive()’ return true?
- How to get “custom post type”-archive with working permalink to it?
- Custom template page with custom archives listing by user
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Custom Post Type Archive Page Filtering
- Root slug of taxonomy returning 404
- How to modify archive query with pre_get_posts to append CPTs?
- URL of a custom post type’s post format archive?
- Create template for taxonomy results limited by Custom Post Type
- Change CPT archive title
- The loop seems stuck to a single (now deleted) post
- Use “archive” as slug for custom post type
- Is it better to use filter for the_content in archive pages?
- How can I get this request to use the Custom Post Type page template instead?
- Custom post type posts don’t show in archive widget
- Archive for a Taxonomy of a Custom Post type
- Archive not sorting correctly
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- multiple custom post type on category page
- How can I use archive-{post_type}.php theme template?
- Taxonomy archive 404ing (not term archive)
- Return the name of the post type
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- archive as a page, so that it can be added in the wp_menu_nav
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Archive links for custom post types
- Show All Custom Post Types On A Single Archive Page
- Custom Post Type setup
- Dynamic category name in query post
- Custom Post Type Archive Pagination
- How to know which archive page is active
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- Archive Template being used instead of Category Template for Custom Post Type
- pre_get_posts works in post type archive but not in single post
- Menu’s breaking, now showing all page links on site
- How to have multiple archive pages?
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- How can I increase the post count for custom post types only?
- Listing authors and date archive from custom post type
- WordPress sitemap with Custom Post Types
- Is possible register two archive pages for single custom post type?
- users post count
- Custom Post Type Archive Page showing as 404
- Custom WordPress theme not displaying posts from category
- Custom Post Type archive page listing a 404 or single post
- Order archive custom posts by taxonomy term [duplicate]
- Custom post type pagination problem – page 1 and 2 show same content
- Adding Custom Post Types to category/tag/author archives breaks header content
- The page or ad listing you are trying to reach no longer exists or has expired
- One of my headings is mysteriously coming up as a link in my CPT Archive
- I broke it! Custom post type archive gets redirected to home
- Want to display my custom date archive to date.php but dont know how
- Custom nav menu current item custom link problem
- Custom Post type archives / categories give 404
- Stop Custom post type from being searched via URL
- archive-{custom_post_type}.php not getting recognized wordpress
- Custom Post Types Archives and daily/monthly joke
- paging is not working properly on news archives page [duplicate]
- ‘Blog Archive’ suddenly appeared on custom post type; how to remove
- Display results from two Custom Post Types in page template
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- Stop header code from showing in category page?
- Custom post types not using archive structure
- How to turn custom-post archive into an overview page, listing the metadata of the posts?
- Pagination not working for archive
- Remove plugin’s custom post type archive page and single pages [closed]
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Remove date rewrite rule for custom post type archive page
- Why using archive pages at all?
- Taxonomy term archive claims there are no posts, but there are. How to resolve?