How to pass global variable via url query string to wordpress?
-
Hi folks,
I’m currently designing a travel blog and I’d like to divide post into 4 parts : main content, a diaporama, itinerary information and more infos. I decided to use the custom fields to do so.My problem is that I want to split the 4 parts onto 4 different tabbed panels. I intended to pass a variable currenttab to wordpress using url query such as “index.php?p=41¤tab=diaporama” and use that variable to create some conditional test. But apparently I don’t manage to write that variable since when I echo it on the next page it doesn’t display anything.
I’m pretty sure that mod-rewrite (I’m using permalinks) has to do with that but I don’t know how. Could you please help me?
Thanks in advance!
ps : If you know an other way to display only some values of the custom fields modifying the template hierarchy and creating diaporama.php, info.php and itinerary.php… feel free to let me know!
- The topic ‘How to pass global variable via url query string to wordpress?’ is closed to new replies.