Prepend the Post title in front of field?

Support General Prepend the Post title in front of field?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48009
    Roel PetraRoel Petra
    Participant

    Hi there,
    I'd like to always prepend the post title in front of my text.
    How can I do this?

    In a bold move I just tried using "{post_title}" but this is unfortunately not possible.

    Any way this can work?

    #48025
    PeterPeter
    Moderator

    Hello Roel,

    How do you output the post title and text? And what is the my text in your case, the post content or a custom field or something else?

    Please share some screenshots of steps you do on your site, I will help you find the proper solution.

    #48027
    Roel PetraRoel Petra
    Participant

    It's a custom field on a post. I said post_title but I meant post_slug.
    I'm using bricks and these are the dynamic tags from brick builder. I was kind of hoping these would work, but unfortunately not.

    Is there a way around this to always prepend using the post slug?

    #48032
    PeterPeter
    Moderator

    Hello,

    The default post slug of WordPress is not a custom field, it is the post field post_name. You can contact the Bricks support and ask them to output the post field post_name in the frontend.
    Following the documentation https://developer.wordpress.org/reference/functions/get_post_field/

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