[Resolved] next and previous post widget

Home Forums Support [Resolved] next and previous post widget

Home Forums Support next and previous post widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1174898
    Femke

    Hi,

    Hope you can help me out. I must have done something wrong. Beneath every post article, I have a widget that shows the previous and next posts. But for some reason it looks all messed up now. I can’t find the place to edit this. Hope you can give me some advice where to find it and what to do. Thank you.


    I just find out that it is the element Custom Post Navigation (but also Secondary Navigation) and see the following message: Unable to execute PHP as DISALLOW_FILE_EDIT is defined. But I still don’t know what to do. I think for now Ill disable the feature untill we find the solution.

    #1175129
    David
    Staff
    Customer Support

    Hi there,

    you can allow PHP execution within just the Hook Elements by adding this PHP snippet to your site:

    add_filter( 'generate_hooks_execute_php', '__return_true' );

    #1175996
    Femke

    Ok thank you! Where should I add this php snippet? In custom css? or in the element itself? And do you know what causes this to happen?

    #1176136
    Femke

    Found it, it was a setting in a security plugin!

    #1176548
    Leo
    Staff
    Customer Support

    David’s should be added using one of these methods:
    https://docs.generatepress.com/article/adding-php/

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