0

Having trouble figuring out if its possible to pass GET variables for a PHP page in Wordpress. The link to the below SO question describes how to add custom PHP pages to Wordpress, but how to pass GET variables along ?

How to add a PHP page to WordPress?

enter image description here

Community
  • 1
  • 1
Andy the android
  • 169
  • 1
  • 2
  • 16
  • Could you develop your question and explain what you are trying to achieve? – postrel Jun 28 '16 at 09:04
  • Consider that am selling products online, so for each product I need the template to similar, but specifications of the product to be different. So i thought it would be good if I put templates as told in the SO question i mentioned and i will pass the product id via a GET variable. – Andy the android Jun 28 '16 at 09:21
  • @Andytheandroid Please stay strictly professional on SO and avoid swears and insults. – Kyll Jun 28 '16 at 09:31

1 Answers1

0

Create your page under let's say example.com/mypage Then send a GET request with myvariable to it

example.com/mypage?myvariable=1
postrel
  • 134
  • 8