[Resolved] hook question

Home Forums Support [Resolved] hook question

Home Forums Support hook question

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1630405
    David

    I’m starting to use Hooks more – love them πŸ™‚
    I’m sort of stumped as to why there isn’t a hook between blog single post content and the section where categories/tags and next/previous blog posts links are…
    Seems an obvious place to have one, I want to include ACF fields section after the main content, but it seems the only option is to turn those areas off in the customizer
    TIA, Dave

    #1630516
    David
    Staff
    Customer Support

    Hi there,

    the Footer Meta is hooked into the generate_after_content hook – you can use the same Hook and set a lower Priority eg. 5 to move content above it.

    #1632079
    David

    Hi David,
    Just tried that, but it didn’t seem to make a difference.
    Cache plugin is turned off.
    Link below to my play page where the post is located.
    Gig Details and Table are the content of the Element

    TIA, Dave

    #1632228
    Elvin
    Staff
    Customer Support

    Hi,

    You can use generate_after_entry_content instead and set priority to anything lower than 10. It’s the hook between the content and the footer entry meta David mentioned.

    https://github.com/tomusborne/generatepress/blob/e030f57d2c26991074a6868265737424dac567d0/content-single.php#L92

    #1632231
    David

    Perfect that did it πŸ™‚
    Thanks Elvin…

    #1633533
    Elvin
    Staff
    Customer Support

    No problem. Glad it works for you. πŸ™‚

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