Forums

How to Integrate my own php code into WP (1 post)

  1. Jakeb0
    Member
    Posted 2 years ago #

    Hi,

    I am trying to use a form on my site that will execute php code prior to displaying any results. So far I've managed to place the form into a window on WP, and call the php action indicated in the html code: <form method="POST" action="searchresults.php">

    However, I haven't figured out how to use WP to generate the output so the result is it takes me away from my site. I've attempted to put some of the WP templates into my custom php file, but I get an error that it doesn't recognize the function.

    I've also tried creating a category-27.php file that would only pick up files of a specific category, but when I put this as my action in the html form statement, it can't find it.

    Please help,

    Thanks,

    Jake

Topic Closed

This topic has been closed to new replies.

About this Topic