[Resolved] shortcodes for page hero header element don't work

Home Forums Support shortcodes for page hero header element don't work

  • This topic has 11 replies, 4 voices, and was last updated 11 months ago by Tom.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1026087
    Carsten

    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

    #1026088
    David
    Staff
    Customer Support

    Hi there,

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

    #1026095
    Carsten
    <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

    #1026100
    David
    Staff
    Customer Support

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

    #1026303
    Carsten

    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

    #1026394
    Carsten

    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?

    #1026537
    David
    Staff
    Customer Support

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

    #1028085
    Carsten

    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

    #1028270
    David
    Staff
    Customer Support

    Well that is odd 🙂 Glad it is working now

    #1029554
    Enrico

    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}}

    #1029567
    David
    Staff
    Customer Support

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

    #1041583
    Tom
    Lead Developer
    Lead Developer

    This has been fixed in 1.9 – thanks for reporting! 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.