gooornik07
gooornik07

Reputation: 89

How to link to other php file in wordpress theme folder?

I've added new template in wordpress's theme folder and a page that uses that template. In my php script there is a button that has onClick function:

<INPUT TYPE="button" onClick="parent.location='MYQUIZTABLE.php'" VALUE="SEND">

The button (after pressed) should link to other php script (called MYQUIZTABLE.php), but "404 not found" is shown on localhost. Where should i put second php script? Or how can i link to that script in my code?

Upvotes: 0

Views: 1048

Answers (1)

Lincoln Lemos
Lincoln Lemos

Reputation: 428

Include full url from MYQUIZTABLE.php file. You can use get_template_directory(); or get_template_directory_uri() for this.

Upvotes: 1

Related Questions