Forums

[resolved] Using Excerpt for Header Information (or any equivalent) (2 posts)

  1. fyre
    Member
    Posted 3 years ago #

    I know the_excerpt() must be called within the loop, but is there any possible way to utilize the excerpt portion of a wordpress entry for a meta description tag (sort of <meta content="<?php the_excerpt(); ?>" name="description">)?

    Essentially, I'm looking for a way to change the meta description tag for each individual post. I have yet to find a plugin that will do this, easily, and using the excerpt field seems perfect, if there's a way to do it.

    Could I call the loop to get the excerpt within the header, and then rewind_posts() and call the loop again to display the post?

  2. fyre
    Member
    Posted 3 years ago #

    can use excerpt if you call loop, then do rewind_posts before calling it, again.

Topic Closed

This topic has been closed to new replies.

About this Topic