WordPress and PHP.
Moderator: jasonb
- jasonb
- Site Administrator
- Posts: 105
- Joined: Tue Apr 22, 2003 1:54 pm
- Location: Toronto, Canada
- Contact:
WordPress and PHP.
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.