The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
How do you deal with WordPress rewrites? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: How do you deal with WordPress rewrites? (/showthread.php?tid=197) |
How do you deal with WordPress rewrites? - sergiozambrano - Jun 30th, 2009 I had been trying the last 2 days to add an API form (because of the captcha not working/documented for direct post yet) and bottom-line: I couldn't resolve the path to the form being used. I had the form on a php template used by the "contact-us" page with a conditional statement for not parsing the code for other pages using the same template. The permalink shows domain/page/subpage, but the page is loaded from the root by index.php. Anyway, I've tried many ways, and I couldn't get the right path to the form itself, or the thank-you page. The blog tries to resolve the not-found path and shows a generic page with a "nothing found for Thank You php" Any clue about how to get the path to the current form inside a wordpress blog? (or any other includes-based website where php must be put in the template because there are not actual files for the content) RE: How do you deal with WordPress rewrites? - Jaace - Sep 23rd, 2009 I'm wrestling with that very same issue...it doesn't make me have hope seeing that this post was on June 30th either, with no responses yet :-(. I'll post back if I figure anything out. I can't even get just the donate form example to work on my WordPress site, outside of wp-content in the root. WordPress just looks for stuff inside the theme folder so I've been trying to do it that way...but it'd be so much easier to just use regular php files for the forms within WordPress instead of trying to integrate it into the theme templates. |