[Resolved] Adding Content To The Footer Of Every Post

Home Forums Support [Resolved] Adding Content To The Footer Of Every Post

Home Forums Support Adding Content To The Footer Of Every Post

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1302861
    johnzoro

    Hopefully, this is an easy one.

    I have a post, and i have a plug in called related posts. this plugin adds a few images with links to related posts.

    What i want to do is have some text and a few links before the related posts bit but after the post content

    so it would be:

    post title

    post content

    the bit i’m trying to add

    related posts

    Ideally i would like to be able to just add it once and then it appears on all posts.

    Is this easy?

    Can i do this with hooks or widgets?

    #1302938
    Leo
    Staff
    Customer Support

    Hi there,

    Hooks element would be the way to go:
    https://docs.generatepress.com/article/header-element-overview/

    Let me know if this helps ๐Ÿ™‚

    #1303185
    johnzoro

    Yeah kinda, although I still don’t really know how to insert it so it’s below the content but before the related posts

    #1303272
    David
    Staff
    Customer Support

    Hi there,

    check the documentation on the Related Posts plugin and see if they provide an option to insert them using a Shortcode or PHP function.

    If so you can then add your content followed by the Related posts function in the after_entry_content hook with a priority of 5

    #1315191
    johnzoro

    Hey sorry for bumping my old thread

    yeah so this is the plugin i’m using i think

    https://wordpress.org/plugins/related-posts-thumbnails/

    can i use html in a hook? what about php?

    #1315382
    johnzoro

    i fixed it! thanks

    #1315410
    David
    Staff
    Customer Support

    Glad to hear that ๐Ÿ™‚

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