- This topic has 18 replies, 3 voices, and was last updated 6 years, 8 months ago by dale.
-
AuthorPosts
-
November 27, 2017 at 4:39 pm #436415dale
I have a text box that I currently have appear at the bottom of certain posts using PHP in GP hooks pasted in the After Content area under Appearance > GP hooks. But apparently Jetpack related posts and miscellaneous post meta at the bottom count as post meta.
Ideally, I’d like the text box to appear above Related Posts. I suppose that means I’d put it in Inside Content, but I’m not sure how to do that without breaking my posts.
Guidance?
November 27, 2017 at 8:02 pm #436554LeoStaffCustomer SupportHi there,
The page you link doesn’t exist? Can you double check?
November 28, 2017 at 5:59 am #436886daleSorry. It should work now.
November 28, 2017 at 7:07 am #436987LeoStaffCustomer SupportI’m not quite sure what am I looking at? Which text box?
November 28, 2017 at 7:15 am #436997daleThe blue one below “Related Posts.” It has a blue background and starts “About Submission Calls
Browse more submission calls or tips for writers. You can sort calls by payment rate: token, semi-professional, professional, or royalties. To get a weekly roundup of all my posts for writers, sign up here.”
November 28, 2017 at 1:21 pm #437278LeoStaffCustomer SupportWhat about this hook? https://docs.generatepress.com/article/generate_after_entry_content/
November 28, 2017 at 3:02 pm #437349daleAnd I would put that in the “Inside Content” hook area?
November 28, 2017 at 5:17 pm #437430LeoStaffCustomer SupportHuh? Those are different hooks?
Or are you looking for this? https://docs.generatepress.com/article/using-hooks/
November 28, 2017 at 6:38 pm #437472daleHmmm … I think we might be using the same words to speak a different language.
Do you want me to take a screenshot of where I currently have the hook inserted? I have it inserted in the “after content” area.
November 28, 2017 at 7:45 pm #437498LeoStaffCustomer SupportIf I understand correctly, this is the one you are using: https://docs.generatepress.com/article/generate_after_content/
and this is the one I would suggest trying: https://docs.generatepress.com/article/generate_after_entry_content/
November 29, 2017 at 5:01 am #437767daleOkay. But I don’t see an After Entry Content hook space available in Appearance > GP hooks.
November 29, 2017 at 7:49 am #437918LeoStaffCustomer SupportYou have to add it using this method as I linked above: https://docs.generatepress.com/article/using-hooks/
November 29, 2017 at 8:23 am #437968daleOh, ok. In functions.php? Thanks!
November 29, 2017 at 9:49 am #438080TomLead DeveloperLead DeveloperPlugins filter
the_content
to add their elements, as they have no idea what theme you’re using, and can’t use hooks.So filtering the content makes it so their elements display directly after the content, above any possible hook.
The only way to control the order is to prevent the plugin from automatically adding their elements, and manually placing their elements into GP Hooks along with your other stuff.
November 29, 2017 at 12:27 pm #438203daleHmmm, okay. So I’d need to write separate hooks for each thing—the desired text, the Jetpack related posts, and the post meta? It that’s the case, it’s probably above my skill level.
-
AuthorPosts
- You must be logged in to reply to this topic.