Site logo

[Resolved] Are there custom post meta for Hooks created in GP Elements?

Home Forums Support [Resolved] Are there custom post meta for Hooks created in GP Elements?

Home Forums Support Are there custom post meta for Hooks created in GP Elements?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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?

    #997048
    David
    Staff
    Customer Support

    Hi 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?

    #997052
    webcré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

    #997061
    webcréateur

    For example, I have a class .autor in 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.

    #997062
    David
    Staff
    Customer Support

    So will every Post display ALL author names?

    #997069
    webcré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 …

    #997085
    David
    Staff
    Customer Support

    The post author is displayed automatically below the Entry Title on single posts – sorry little confused.

    #997087
    webcréateur

    Okay, asked differently …

    How can I output the author over the featured post by hook

    #997321
    David
    Staff
    Customer Support

    If 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.

    #997349
    webcré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/ozpo71

    Is this possible with Hooks in GP Elements?

    Sorry for my newbie questions.

    #997549
    Tom
    Lead Developer
    Lead Developer

    You 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 🙂

    #999750
    webcréateur

    Thank you very much!

    #1000100
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.