Site logo

Archived topic

Can I call/use a reusable block in a hook?

2 replies · Started by Dajuan on May 20, 2020

Viewing posts 1–3 of 3

I want content to be appended to blog posts depending on their category. Are hooks the best way to accomplish this and can I call/use a reusable block in such a hook? Or is there a better method?

For example, via the link I shared, I want the "ARE YOU PLANNING YOUR WEDDING DAY?" section to appear on all blog posts within a wedding category.

Note: The link example is not GeneratePress, but rather the theme I'm planning to migrate from.

Just heard from Tom this will doable in GPP 1.11.0.

Happy dance!

Thats correct :) Have a good day

This archived topic is closed to new replies.