I want to add a gutenberg block (say a table) only once from a generatepress ‘Element’ and have it apply to all posts of a certain type.
From ‘Elements’ I created a blocktype = ‘hook’ and hook = ‘generate_inside_containter’ but it does not work. I tried other variations that didn’t work either.
If what I want to do is possible what should the parameter be?
I am trying this element with learndash lms post types and just discovered that that the rule works for some post type ‘courses’ but not ‘lessons’ or ‘topics’.
Block type = Hook
Hook = generate_after_content
Priority = 10 (This is default)
Location = Lesson
If the location is ‘course’ it works.
In any case, I will experiment a bit with tags to see if I can get it to work and let you know.