Archived topic
Post Navigation Error
7 replies · Started by Eugene on December 1, 2020
Hi, I am getting this error at the bottom on my post.
I have done the following:
PHP Snippet
add_filter( 'generate_hooks_execute_php', '__return_true' );
Left wp-config as default
define('DISALLOW_FILE_EDIT', true);
But the error still shows:
1, 'include' => $prevPost->ID, 'post_type' => $post_type, ); $prevPost = get_posts($args); foreach ($prevPost as $post) { setup_postdata($post); ?>
Hi there.
in the Hook Element - have you checked: Execute PHP ?
The Execute PHP still shows: Unable to execute PHP as DISALLOW_FILE_EDIT is defined.
Do you still have this PHP Snippet added to your site:
add_filter( 'generate_hooks_execute_php', '__return_true' );
If so, where is it added ?
Yes, the code is added. I use PHP Snippet Code Plugin.
Is it this plugin:
https://en-gb.wordpress.org/plugins/code-snippets/
as this is the one we recommend using
I used a different plugin. I have used the one recommended and problem is now solved. Thanks.
Glad to hear that!