Site logo

Archived topic

Archive Excerpt setting applying to other pages

7 replies · Started by Margot on March 11, 2018

Viewing posts 1–8 of 8

Not sure if I'm doing something wrong but my excerpt settings for the blog archive page is being applied to other static pages on my site. So on static pages where I have more content, it's cutting it off at the number of words that is designated on the bog archive layout. How can I fix this so the excerpt is only set to the blog landing page?

Hi there,

Hmm I'm not quite sure what's going on here.

So the read more somehow shows up on static pages?

Yes. It’s showing up on all of my static pages.

Hi there,

Looks like you're using a custom page template. Is that template using the_content() to display the content?

I think so...? I apologize, I'm not super well versed in this. This is the first website I'm developing so I'm learning as I go. Thank you for your patience with me. Here's the php for the content:

<?php get_template_part( 'content' ); ?>

"content" is meant for blog posts.

Use this instead: <?php get_template_part( 'content', 'page' ); ?>

Got it. Will do. Thank you!

No problem! :)

This archived topic is closed to new replies.