Site logo

Archived topic

shortcodes for page hero header element don't work

11 replies · Started by Carsten on October 4, 2019

Viewing posts 1–12 of 12

hi david,

i just started a new site using the premium version of genratepress and everything works fine up to now. but i don't get a hero header working: as soon as i insert shortcodes like {{post_title}}, everything below the header remains empty.

the hero header is working fine with normal html tags and text, but not with the shortcodes.
do you have an idea what is going wrong?

thank you in advance!
carsten

Hi there,

can you share all of the code you have in the Header Element ?

<h1>
	{{post_title}}
</h1>

<div class="hero-meta">
	{{post_date}} | {{post_author}}
	in {{post_terms.taxonomy}}
</div>

but it also does not work with just a single shortcode

Very odd ... can you test if there are any plugin conflicts by disabling all but GPP ?

i already disabled all other plugins before, unfortunately with no effect.
i was asking myself if i have a misconfiguration somewhere ... but i don't have an idea what it could be

now i made a fresh install of wordpress on my server, the result is the same.
is maybe a php module missing?
or is this feature not compatible with the classic editor? can the site get confused by the "use sections" setting when editing a post?

How bizarre.
Have you tried re-downloading the GP Premium zip and re-installing?

hi david,
i absolutely don't know why. but when i started to work on the site again this morning, it suddenly worked. strange thing, i don't have an explanation. i swore, i emtied the cache etc!
but now, we can mark this as solved.
thank you very much for your support!
carsten

Well that is odd :) Glad it is working now

In case someone else experienced the same issue: my element / page hero broke the page content because I did not change the shortcode {{post_terms.taxonomy}} into {{post_terms.category}}

Aah - thanks for the feedback - we'll take a closer look at why that may be happening.

This has been fixed in 1.9 - thanks for reporting! :)

This archived topic is closed to new replies.