- This topic has 12 replies, 3 voices, and was last updated 6 years, 7 months ago by
Tom.
-
AuthorPosts
-
August 30, 2019 at 4:18 am #997044
webcréateur
I want to Import author names from a source page to my single posts. The author name should be placed above the Featured Image just as in text.
To import the name in right place I created a Hook in Elements and selected
after_entry_title.How can I find out the post meta key for that Hook in GP Elements?
August 30, 2019 at 4:25 am #997048David
StaffCustomer SupportHi there,
Hooks are a just a ‘place’ where you can insert data.
Where are you getting the author names from? And how would the Author name relate to the post it is being displayed on?
August 30, 2019 at 4:29 am #997052webcréateur
Hi there,
I was thinking to create a “place” (after_entry_title) and import values in this place.
Not possible? 🙂The author names are from a source news page.
I forget to mention that I am also importing the related post …And I am going to import via CSS Selectors
August 30, 2019 at 4:37 am #997061webcréateur
For example, I have a class
.autorin the source news page.
I want to import all names which have this class to the target website in single Posts above the Featured Image.August 30, 2019 at 4:38 am #997062David
StaffCustomer SupportSo will every Post display ALL author names?
August 30, 2019 at 4:49 am #997069webcréateur
So will every Post display ALL author names?
No, each Post will display only the author of the specific post.
I “just” would need a value for an input that I create first.
I thought to do that withe the hooks …August 30, 2019 at 5:05 am #997085David
StaffCustomer SupportThe post author is displayed automatically below the Entry Title on single posts – sorry little confused.
August 30, 2019 at 5:09 am #997087webcréateur
Okay, asked differently …
How can I output the author over the featured post by hook
August 30, 2019 at 8:46 am #997321David
StaffCustomer SupportIf you’re using a Header Element then its quite simple – see this example:
https://docs.generatepress.com/article/page-hero-examples/#example-2
If not then if you can link me to the site and ill see what can be done – overlaying it on the featured image can be tricky.
August 30, 2019 at 9:29 am #997349webcréateur
Sorry for confusing … I am trying to find a way for the requirement.
How can I create an Input field in WP backend posts, like the following one:
https://prnt.sc/ozpo71Is this possible with Hooks in GP Elements?
Sorry for my newbie questions.
August 30, 2019 at 4:45 pm #997549Tom
Lead DeveloperLead DeveloperYou need to create a custom metabox to do that, which isn’t possible in GPP. Advanced Custom Fields is worth checking out: https://www.advancedcustomfields.com/
Hope this helps 🙂
September 3, 2019 at 2:10 am #999750webcréateur
Thank you very much!
September 3, 2019 at 8:07 am #1000100Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.