• Hi, hope you can give me some clarification on this. I added a new post type called “test” and created two articles inside it. I then created a simple template with only the post title showing. I then checked the “create archive” option (under advanced options in the pod settings), and then I enabled the auto templates and put the newly created template as the list template (I put replace as position, but I also tried the other twos). In a YT video I saw that this should overwrite the archive page of the theme, and display the posts like the template, but that’s not happening. Is it not the intended behaviour? I’m using twentytwenty as theme

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @giovannicas

    Whether auto-templates work is fully depending on action hooks.
    What hook is set for the list template? My first guess would be the_excerpt.

    Cheers, Jory

    Thread Starter Giovanni Castellotti

    (@giovannicas)

    Yes @keraweb, I’m using the default one, which is the_excerpt. I would like this to work on the theme “Bricks”. I actually used twentytwenty to try, because that is one of the default themes and I generally use that one to see if the problems I have are theme-related or not. Should I ask support on whick hook is Bricks using to display the archive page? Bricks, as stated from one of the staff members, should be compatible with Pods. I didn’t ask prior to them, because it is not working either with twentytwenty, so I thought this could be a problem of Pods. I wasn’t able to find the hook for the archive page online, I found get_the_archive_title, but using that is also not working. Do you know which one should I use by default to target the archive page?
    Thanks a lot

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @giovannicas

    Not all themes include a content hook in the archive templates.
    You might need to create a child theme and add it into the archive templates manually.

    I just checked the twentytwenty theme and depending on your theme config it should be either the_excerpt or the_content based on a theme mod (probably customizer).
    In there you need to set the blog content type to a summary and then it should be using the excerpt. Otherwise it’s using the content.
    https://github.com/WordPress/twentytwenty/blob/master/template-parts/content.php#L32-L38

    In the Bricks theme it might be different!

    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘List template with auto templates not working’ is closed to new replies.