Over the weekend I tried using my nearly non-existant knowledge of php to write a little piece of code to repeat something down the page for me, albeit with slight variations.
I tried uploading it in a new Page template. I couldn’t get it to work. I heard that a plugin was needed before PHP would work in posts/pages. So I downloaded one, enabled it and still the page wouldn’t work (I just get what is, effectively, a blank page).
I tried uploading the most basic piece of code I could think of, namely a piecve to print ‘Hello World’. It worked, making me think that the problem was my coding rather than the plugin not working.
The really confusing part is that I then tried deactivating the plugin, just to double check, and the printing of ‘Hello World’ still worked. So I’m thoroughly confused. Do I need to use a plugin to run PHP in a Page or not?
- The topic ‘Yet another problem with including PHP’ is closed to new replies.