• Resolved oskar866

    (@oskar866)


    Hi. Forgive me if I’m misunderstanding how Snippets works but I’m trying to make a simple snippet as per the attached image. It contains three lines of information, I wish to set a variable to each of the lines and then, in my WordPress page, add just one of the variables at the required place. I’ve included an image of what I’ve tried but it fails, all I see are the three lines, not just one of them. What I’d like to achive is a line of text on my webpage that says something like

    ‘My name is Micky Mouse, my email address is [email protected] or you can phone me on 01234 567890.’

    Can I do what I’m trying to achieve in Snippets or do I need to make three separate snippets, one line and one variable? Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @oskar866,

    Thanks for your email,

    I hope you are doing well, We have attached the snippet for your help and you can use it to get your desired output on the screen.

    Please have a look at the screencast video: link

    snippets -1 :

    <h1>User Details</h1>
    	My name is {name}, my email address is {email} or you can phone me on {phone}.
    

    See the screenshot: https://ibb.co/RTZLVNZ

    Thanks & Regards

    WP Experts Support Team

    • This reply was modified 1 year, 4 months ago by Mirza Hamza.
Viewing 1 replies (of 1 total)
  • The topic ‘Accessing variable, how?’ is closed to new replies.