how to pass post id as a query string on button click.

Posted in: Newspaper
Post count: 3

Hello,

i want to pass post ID in the query string parameter.
here is my website url
https://rikonclocks.com/production/products/office-clocks/7651-2/

i had put “Send Enquiry ” button on every post. so when the user clicks on that I want to pass that post ID in parameter. how can I do that?

Thanks

Post count: 35449
Post count: 3

I don’t think this is a custom code requirement. Because it is a basic need for a post page. I want solutions from PHP and wordpress. So please provide me with the solution for it.

I think you should support wordpress tags inside button url like <id>, <category> etc.

Post count: 21065

Hello @techdesire!

You have some settings to the element called “Button”:
https://www.screencast.com/t/prSQoWyU

If you do not mean this, then please provide more information about what you need to achieve, screenshots or a video in order to help you.

A solution for sending a screenshot/video is this:
Download, capture, send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link, paste it here.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.