Site logo

Archived topic

How can I reorder plugins at the end of single posts

9 replies · Started by Jude on October 18, 2019

Viewing posts 1–10 of 10

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.

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.

Unfortunately non of the plugins provide shortcode.

How do I go about his now?

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.

Are there alternative plugins you can recommend that have shortcodes?

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

That's not possible unfortunately.

There are no hooks that exist between paragraphs.

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

This archived topic is closed to new replies.