Site logo

[Resolved] How to get the title of a post dynamically

Home Forums Support [Resolved] How to get the title of a post dynamically

Home Forums Support How to get the title of a post dynamically

  • This topic has 5 replies, 2 voices, and was last updated 3 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2571386
    Pablo

    Hello, I want to obtain the title of a post dynamically to be able to insert in post a link of this type:

    https://api.whatsapp.com/send?phone=34XXXXXXXXX&text=Hello, look what an interesting article I have read: (Post_title)

    How can I do it with generate press?

    Thank you

    #2571397
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I fully understand.

    Where are you trying to insert it?

    Can you link me to the page in question?

    #2571529
    Pablo

    Hi Leo.

    Look for this post:

    So that users who read this post can have more information, I have put a link pointing to api.whatsapp.com

    When a user clicks on that link, the WhatsApp application opens and sends a message to the phone number included in the link with this text:

    Hi, I´ve seen this on test.com and I´d like more information please.

    Is it possible to include the title of post in that link?

    For example:

    Hi, I´ve seen this post (the_title_of_post) on website.com and I´d like more information please.

    Let me know if you undstand my idea.

    #2571537
    Leo
    Staff
    Customer Support

    Hi Pablo,

    Unfortunately I still don’t understand the requirement.
    That being said, it doesn’t sound like a theme-related request at all.

    Post titles and content etc are WP core features so in theory, if there is a solution that works in a Twenty series WP theme, the exact solution should work in GP.

    Hope this provide some insights 🙂

    #2571600
    Pablo

    ok

    #2571619
    Leo
    Staff
    Customer Support

    Good luck!

    A WordPress general forum might be helpful for a question like this as well:
    https://wordpress.stackexchange.com/

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to get the title of a post dynamically’ is closed to new replies.