Site logo

[Resolved] Post Navigation Error

Home Forums Support [Resolved] Post Navigation Error

Home Forums Support Post Navigation Error

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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); ?>

    #1563182
    David
    Staff
    Customer Support

    Hi there.

    in the Hook Element – have you checked: Execute PHP ?

    #1563194
    Eugene

    The Execute PHP still shows: Unable to execute PHP as DISALLOW_FILE_EDIT is defined.

    #1563342
    David
    Staff
    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 ?

    #1563398
    Eugene

    Yes, the code is added. I use PHP Snippet Code Plugin.

    #1563530
    David
    Staff
    Customer Support

    Is it this plugin:

    https://en-gb.wordpress.org/plugins/code-snippets/

    as this is the one we recommend using

    #1563580
    Eugene

    I used a different plugin. I have used the one recommended and problem is now solved. Thanks.

    #1563584
    David
    Staff
    Customer Support

    Glad to hear that!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.