Archived topic
next and previous post widget
4 replies · Started by Femke on February 24, 2020
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.
-
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' );
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?
Found it, it was a setting in a security plugin!
David's should be added using one of these methods:
https://docs.generatepress.com/article/adding-php/