WordPress and PHP.

Technical Q&A involving operating systems, networking, software, and hardware issues.

Moderator: jasonb

Post Reply
User avatar
jasonb
Site Administrator
Posts: 105
Joined: Tue Apr 22, 2003 1:54 pm
Location: Toronto, Canada
Contact:

WordPress and PHP.

Post by jasonb »

I recently discovered that when I did a search for books by author from the Speculative Fiction section of my Web site (which I'd recently converted over to WordPress), it would simply return me to my home page rather than showing me the results. I fixed this by changing the PHP code in my Wordpress page from $_SERVER['PHP_SELF']) to $_SERVER['REQUEST_URI']). Apparently, there's something about PHP_SELF that WordPress, when running PHP code, doesn't like.
Post Reply