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 Archives by Year & Month?
- Get custom post type slug for an archive page
- Custom post type pagination 404 fix?
- 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
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- 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 comment status possible?
- is_singular won’t call my functions?
- paginate function in archive for custom-post-type
- Change plugin’s has_archive = true to false?
- 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
- Slug for standard post post_type
- WordPress custom post type archive with description
- Get post type from taxonomy or category page
- Category page only displaying the posts from a custom type
- How to list custom post types?
- custom taxonomy archive by year
- Display CPT description on archive.php pages for all CPT
- When ‘is_post_type_archive()’ return true?
- CPT Archive with core Category
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Custom Post Type Archive Page Filtering
- How to modify archive query with pre_get_posts to append CPTs?
- get the custom post type title/name
- Get archive post type name
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- URL of a custom post type’s post format archive?
- Create template for taxonomy results limited by Custom Post Type
- Change CPT archive title
- WordPress showing archive.php instead page
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- 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?
- Archive not sorting correctly
- What’s the name of the custom post type yearly archive template?
- multiple custom post type on category page
- How can I use archive-{post_type}.php theme template?
- Taxonomy archive 404ing (not term archive)
- Assign CPT archive page attributes
- Custom taxonomy or custom page templates?
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Use the custom post type archive for taxonomies?
- Custom Post Type setup
- Display Date & Author Info on Custom Post Type Archive Page
- How to constrain the results to a specific post_type on tag archive page?
- How can I relate custom post types?
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- 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 prevent a custom post type from using the archive.php template?
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- How can I tell if I’m on a custom post type archive page?
- users post count
- How to achieve a multi-taxomony layout with posts?
- Custom Post type page content (archive page)
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- Group custom post type posts by month
- Custom WordPress theme not displaying posts from category
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- Custom post types not showing on the standard WordPress Category page
- Tell wordpress to show a single page instead of an archive page
- Custom Post Type archive page listing a 404 or single post
- Turning archive templates to a page template maintaining the slug
- Order archive custom posts by taxonomy term [duplicate]
- Custom post type pagination problem – page 1 and 2 show same content
- Custom Archive – hide posts until a search is made?
- 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
- Custom Post Type tag taxonomy “Page Not Found”
- Custom Post type archives / categories give 404
- Site loads very slow for archive custom post type page
- Archive.php is not displaying tags
- Custom post type category page not working
- Custom post types with date based archive
- Custom Post Types Archives and daily/monthly joke
- paging is not working properly on news archives page [duplicate]
- Categories in custom post types
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- is_singular won’t call my functions?
- How to turn custom-post archive into an overview page, listing the metadata of the posts?
- how to pass args for archive.php query?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- Show custom category archive as front page and remove taxonomy slug from urls