From php code, how do I send the visitor to a specific page?
-
I must have a mis-conception because what I’m tryin to do seems like it should be super easy and already built in to WP.
At a certain point in the execution of a search plugin I’m using, I can tell that nothing is found. So instead of showing a blank content area (like it does now), I would like to show a special page (that I can edit in the wp page editor) with a nice error message and a small photo gallery with links to other interesting posts.
I was looking at include() and wp_redirect(), but those functions are not designed for that. Can someone throw me a crumb? I expect it to work just like someone clicked on a menu item that took them to that page, but without the click, just automatically take them there.
Thanks, Ron
- The topic ‘From php code, how do I send the visitor to a specific page?’ is closed to new replies.