Timeline for PHP File_exist() not working - Checking if File Exist in WordPress Theme Directory
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 13, 2022 at 10:30 | vote | accept | Tamara | ||
May 13, 2022 at 9:55 | comment | added | Sally CJ |
Yes @Tamara, I knew $file_uri wouldn't work, and I was only telling you that you've used an undefined variable.
|
|
May 13, 2022 at 9:38 | answer | added | Jacob Peattie | timeline score: 1 | |
May 13, 2022 at 9:30 | comment | added | Tamara |
@SallyCJ that was a typo… it has been corrected to reflect the $file_uri variable – However, the code still doesn't work even though i have an archive.php file available in the theme's directory
|
|
May 13, 2022 at 9:08 | history | edited | Tamara | CC BY-SA 4.0 |
added 4 characters in body
|
May 13, 2022 at 9:03 | comment | added | Tamara | @JacobPeattie, that was a Typo.. I meant the theme directory | |
May 13, 2022 at 9:03 | history | edited | Tamara | CC BY-SA 4.0 |
added 4 characters in body
|
May 13, 2022 at 7:09 | comment | added | Sally CJ |
What is $mPath ? I don't see it defined anywhere in your code.
|
|
May 13, 2022 at 7:07 | comment | added | Jacob Peattie | The WP root directory or the theme directory? | |
May 13, 2022 at 6:10 | history | asked | Tamara | CC BY-SA 4.0 |