How to Run PHP Code in WordPress
February 8th, 2013 by admin
->
www.sjcwebdesign.com – Hello everyone, Larry Snow here with another quick tutorial on how to run PHP Code in a WordPress Page or Post. I was presented with a challenge to retrieve data residing on a MySQL database and have it displayed on our client’s page. I decided to use PHP code since WordPress is built upon PHP but surprisingly without a plugin WordPress ignores the PHP code. TWITTER @SJCWebDesignLLC Facebook: on.fb.me LINK TO CODE: bit.ly
Written by - Visit WebsitePosted in Wordpress Tutorial Videos
February 8th, 2013 at 9:39 pm
Hi Philip – got your other post, deleted it accidentally 🙁 I see what you are asking now – I don’t think there is a search plugin to search the database, I’d try using the text plugin to set up a search box that when submitted would go to a page that has the sql query code to search the database and show the results. If you can’t? do it as a text plugin, set up a separate page for the search box.
February 8th, 2013 at 9:39 pm
i have a question sir do you know any search box plugin similar to web browser text finder found in (ctr+F) because if? i display a long list of personal info from my database im gonna need a text search box in my web page without pressing ctr+F
February 8th, 2013 at 9:39 pm
I believe it is the standard search widget that comes with WordPress.? It can search a page and post.
February 8th, 2013 at 9:39 pm
the search box in right? side what plugin did you use for that???
it can search text from the page only???
February 8th, 2013 at 9:39 pm
owryt! thanks!?
February 8th, 2013 at 9:39 pm
Why are you? using mysql and not myslqi?
February 8th, 2013 at 9:39 pm
Sweet, thank you sir!? 🙂
February 8th, 2013 at 9:39 pm
Hi Martin thanks for the kinds words. Not sure if I can answer your questions, but feel free to post and if I can answer them I will. I’d suggest though, and you may have already done this, to go? to WordPress(dot)org forums for answers to your questions.
February 8th, 2013 at 9:39 pm
Nice tutorial! Was helpful, but still have a few? questions.
February 8th, 2013 at 9:39 pm
Great stuff? thanks.