Site logo

Archived topic

Show excerpt in page header

3 replies · Started by Rodrigo on January 18, 2020

Viewing posts 1–4 of 4

Hello Tom and Leo,

I am creating a Header Element for a Custom Post Type with Advanced Custom Fields. So far, so good, the {{custom_field.taxonomy}} works very well, although I need to figure out how to convert a ACF into a different element (for example, a URL into a font_awesome icon or youtube video).

I want to show in the Header the excerpt of the CPT. I tried with the template tag the_excerpt but it doesn't work. So, my question is:

Is there a way to show the excerpt on the page Header?

Would the above the best approach? I'm thinking perhaps is easier to create another ACF instead of using the extract.

Thanks in advance

Thanks. I'll try this. I ended up using a new ACF for this, but will try this method.

No problem :)

This archived topic is closed to new replies.