Home › Forums › Support › Post Navigation Error This topic has 7 replies, 2 voices, and was last updated 5 years, 4 months ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts December 1, 2020 at 4:55 pm #1562446 Eugene 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); ?> December 2, 2020 at 2:17 am #1563182 DavidStaff Customer Support Hi there. in the Hook Element – have you checked: Execute PHP ? December 2, 2020 at 2:23 am #1563194 Eugene The Execute PHP still shows: Unable to execute PHP as DISALLOW_FILE_EDIT is defined. December 2, 2020 at 3:28 am #1563342 DavidStaff Customer Support 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 ? December 2, 2020 at 3:58 am #1563398 Eugene Yes, the code is added. I use PHP Snippet Code Plugin. December 2, 2020 at 5:21 am #1563530 DavidStaff Customer Support Is it this plugin: https://en-gb.wordpress.org/plugins/code-snippets/ as this is the one we recommend using December 2, 2020 at 5:48 am #1563580 Eugene I used a different plugin. I have used the one recommended and problem is now solved. Thanks. December 2, 2020 at 5:50 am #1563584 DavidStaff Customer Support Glad to hear that! Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In