• Resolved jimh275

    (@jimh275)


    Hello,

    I have a custom post type called members.
    I copied post-archives.php and put that code in archive-member.php. I edited archive-member.php to load the template part content-memberarchives and created a content-memberarchives.php and copied the code from content-postarchives into it.

    Everything is displaying as it should and WP is loading my templates, BUT, the Member Headers are not displaying the Links to individual Members.

    I start looking at the source and I see neither content file contains links in the headers, yet the links show up if I switch back to content-postarchives.php

    Please help me understand what’s going on here and how to make it work with my own template.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jimh275

    (@jimh275)

    I was able to add a link using the permalink and that works.
    I’m still trying to figure out why links appear in content-postarchives.php though.

    Theme Author Anthony Hortin

    (@ahortin)

    The Posts Archive template is basically a custom Page Template for displaying a complete list of your Post Archives by Category and Month. See a demo of this Page Template in action here – https://demo.quarktheme.com/posts-archive/

    If you want to create templates for your Custom Post Type, then you should copy the contents of index.php into your archive-member.php template.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Links in CPT Archive’ is closed to new replies.