0
votes

I'm using this plugin in Wordpress to write php in a page but every time I use a for loop it gives me this error:

Parse error: syntax error, unexpected end of file, expecting ';'

How do I solve this?

1
You need to show some code for us to help. What is the PHP you are trying to include?ssergei
Just a simple for loop. It works outside of wordpress, and I used other loops aswell. But it does works with other plugins, so it's fixedArn Vanhoutte

1 Answers

2
votes

This plugin does not work with loops. It is a known issue if you take a look at the reviews. There is a plugin that I often use and that works perfectly. It is called WP-exec PHP.

Link here: https://wordpress.org/plugins/wp-exec-php/