Archived topic
Problem at bottom of page
26 replies · Started by Bob on February 6, 2023
At the bottom of my posts the images (for other posts) don't show and I get the following code showing above where the images should be:
1, 'include' => $prevPost->ID ); $prevPost = get_posts($args); foreach ($prevPost as $post) { setup_postdata($post); ?>
PREVIOUS
1, 'include' => $nextPost->ID ); $nextPost = get_posts($args); foreach ($nextPost as $post) { setup_postdata($post); ?>
I would send a screen image, but don't see how to attach one.
Please tell me how to fix this.
Regards,
Bob
Hi Bob,
Any chance you can provide an admin login using the private info field so we can take a look at the backend?
See private information.
You can use support@generatepress.com :)
OK. You should have an email coming to you with login details.
See private info in case you didn't get the login URL.
Hi Bob,
Can you set the password for the created user, and share the credentials here through the Private Information field?
See private information
I tried logging in, but the password shared isn't working. Can you check?
I don't know why it didn't work. I sent you a link so that you can reset the password. Let me know if you don't receive it.
We got it.
PHP isn't being executed. You can try doing this: https://docs.generatepress.com/article/generate_hooks_execute_php/
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
As an alternative, you can also try using a Block Element - Post Navigation instead. See: https://docs.generatepress.com/article/block-element-post-navigation/
Are you able to log in?
Yes. Kindly check my response here for the solution: https://generatepress.com/forums/topic/problem-at-bottom-of-page/#post-2523953
I can't find the functions.php file.
I was looking for it like this: WP Admin Dashboard > Appearance > Theme Editor (but there is nothing that says, "editor."
I was going to add the following code per your instructions above: add_filter( 'generate_hooks_execute_php', '__return_true' );
How do I find the functions.php file?
Are you still there, Fernando?