How to get the Clicked ID and Output that ID Data in another Page in WordPress

I am creating a WordPress Theme ,I created Single.php now in single.php i have a Button Called Watch Now .

When Watch Now is Clicked it gets the ID of the Current/Clicked Post dynamically ! I used WP function (get_the_ID) now when it goes to another Page (receive.php) i want to output that ID data there i.e image of that ID , Content of that ID , title and other things.I tried alot but when i click Watch Now it leads me to the receive.php with this error (Error 404 – Page Not Found) !

Source: wordpress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.