• I’ve probably read through twenty posts on this and even the page in the codex but I still cannot get my php script to work in my site. Here are the steps I’ve taken to this point.
    Downloaded a copy of my child theme’s page.php and added my php code inside of it. Uploaded the custom page to my parent theme. Created a new page and chose the custom template I just created. Created another new page and added the form html with the form method pointing to the permalink of the previous new page using the custom page template. When I go to the page with the form and fill it out and click send I get a 404 error. I am assuming it is a path issue but I cannot figure out the right path to my custom_page.php script. How do I get this work? Have I followed the right steps or did I miss something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • if you hover over the send button, does it give you a path down in the left hand corner of the browser (on chrome)

    or look at the source file to see where that path is directing.

    Thread Starter nootkan

    (@nootkan)

    Thanks for your reply, however that just gives me the path that I put in myself based on the permalink url from the blank page that I created pointing to the custom template. I was hoping someone who has gotten this to work with their own custom_page.php page could help me to understand where to find the correct path. Do I somehow use the parent theme/custom.php instead of custom-page like the permalink states above the new page? It seems that every path I’ve mentioned here doesn’t work. I don’t want to have to resort to a plugin if I don’t have to as I already have too many plugins in my site now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Page Question’ is closed to new replies.