[Support request] How can I reorder plugins at the end of single posts

Home Forums Support [Support request] How can I reorder plugins at the end of single posts

Home Forums Support How can I reorder plugins at the end of single posts

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1038245
    Jude

    My old theme came with an inbuilt share button and author bio.

    I have to install additional plugins for the share button and author bio when I switched to GeneratePress.
    However, the plugins are not in an order that makes sense.

    How can I reorder this? The screenshot (https://prnt.sc/pl52yh) shows the plugins and I numbered them in the order I want them to appear.
    Thanks for your help.

    Please note that the product review plugin is not present in all the single post.

    #1038278
    David
    Staff
    Customer Support

    Hi there,

    each of those plugins are filtering the content, which makes that difficult to re-order.
    Do the plugins provide an option to insert using a Shortcode?
    If so you can use that method and add each shortcode to a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    You would want to use the after_content hook and set your display rules for the posts you want them on.

    To re-order their position you can change the Hook Elements priority – low (1) places them higher, higher numbers place them lower down the page.

    #1040235
    Jude

    Unfortunately non of the plugins provide shortcode.

    How do I go about his now?

    #1040242
    David
    Staff
    Customer Support

    There isn’t anything we can do to change that.
    Each plugin will be setting its own priority for the_content filter which is out of our control. You may want to speak with the plugin authors.

    #1040287
    Jude

    Are there alternative plugins you can recommend that have shortcodes?

    #1040290
    David
    Staff
    Customer Support

    For the author box i believe this one does or at the very least provides the PHP Function which can be added using a Hook:

    https://en-gb.wordpress.org/plugins/simple-author-box/

    Social icons – search for GP Social Share

    The other element you could leave as is.

    #1040432
    Jude

    That worked perfectly Thanks.

    However, there is one more thing.
    I used hook for this ad. https://prnt.sc/pmayfv

    can I get it to display after the first paragraph of the last header of each post?
    https://prnt.sc/pmb08w
    If so, how do I do it? Thank you

    #1040510
    Leo
    Staff
    Customer Support

    That’s not possible unfortunately.

    There are no hooks that exist between paragraphs.

    #1040735
    Jude

    are there hooks that exist between headings?
    What if it comes after the last heading of all posts

    #1040740
    Leo
    Staff
    Customer Support

    Unfortunately not.

    You can see all the available hooks in single post here:
    https://docs.generatepress.com/article/hooks-visual-guide/#single-post

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