Sorry, I should have said “My French is crêpe”.
Yes, I tried all sorts of things like changing permalinks to add a “.php” to all links to make it possible to pass variables.
For example, I want to do this:
1) Pass a variable for “name” on a URL in my blog like http://localhost/blog/posts/my-post.php?name=Jean-Francois
2) Embedded in my Post or Page is a short bit of PHP code that grabs that variable “?name=Jean-Francois” and displays the name.
Simple. It works of course in flat PHP/HTML, but using WP causes problems. I am stumped.
Hmm. That works for me. I use blabla.com/?page_id=1&thing=2&id=34322, and this in the code:
$thing = $_GET["thing"];
$id = $_GET["id"];
I only use it on static pages, but that shouldn’t make a difference I think.
Thanks Michael, was just about to post a link myself! 😉
QuickPHP is really targeted for single function calls or include statements (it does one ‘method’, with a parenthesized parameter list), constant arguments. But including a php script is then really easy, or calling a function (like any basic WP func..).
I use it for embedding things like CG-FeedRead feeds, or wacky CG-Amazon stuff (since CG-Inline already has an amazon tag).
-d
Ahhh, relief. Got it to work. My stupid stupid problem was that I failed to tick the little “run PHP code?” box on the Write Post and Write Page area. Stupid me. Ok, now it’s done and it works. Ah!
Stupid me…
Well, hey…. at least you got it working now. And thanks VERY much for posting back, so the next poor soul can (maybe – since goddess only knows how long search will be broke herein) find the help heesh needs….
No problem… but it took me a DAY to figure out that I forgot to tick that darn box. I am still shaking my head. I didn’t sleep well last night because of it. Stupid stupid mistake.
Yes, runPHP works very well for passing variables. I have not tried any of the other PHP addons, but assume they work well too.