Site logo

Archived topic

Header element for Custom Post Type

4 replies · Started by Marcos on May 28, 2019

Viewing posts 1–5 of 5

Hi.
I have a CPT called 'viajes'. I'm trying to add a Header Element to the [my-domain]/viajes/ page.
In the Header Element I've set a custom image in the Page Hero and "Location: Viaje Archive" as a Display Rule.
But instead of my custom image I get the featured image of the first post as the header image.
What am I doing wrong?
Thanks!

Hi.
Got it working. Some of my code was interfering with how the header element was being displayed.

Just one thing: how could I get access (in code, for example in my file archive-viajes.php file) to the header info being displayed on that page?

Thanks

Hi there,

Which header info are you trying to access exactly?

Hi, finally I did it a different way.
Thanks.

Glad you got it working :)

This archived topic is closed to new replies.