Subscribe to the RSS Feed
FreeWordpressThemes.us
Free WordPress Tutorials and Themes.

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 Website

Posted in Wordpress Tutorial Videos

10 Responses

  1. Lawrence Snow

    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.

  2. philip canata

    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

  3. Lawrence Snow

    I believe it is the standard search widget that comes with WordPress.? It can search a page and post.

  4. philip canata

    the search box in right? side what plugin did you use for that???
    it can search text from the page only???

  5. Den Mark Meralpis

    owryt! thanks!?

  6. DasBeatz

    Why are you? using mysql and not myslqi?

  7. TKzTechnology

    Sweet, thank you sir!? 🙂

  8. Lawrence Snow

    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.

  9. Martin Brault

    Nice tutorial! Was helpful, but still have a few? questions.

  10. Jeff Lewis

    Great stuff? thanks.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.