Home › Forums › Support › This code appears above the pagination of my website in the articles. It shouldn
- This topic has 16 replies, 5 voices, and was last updated 2 years, 6 months ago by Elvin.
-
AuthorPosts
-
September 15, 2021 at 12:56 am #1931028Pablo Romero Gonzalez
1, ‘include’ => $prevPost->ID, ‘post_type’ => $post_type, ); $prevPost = get_posts($args); foreach ($prevPost as $post) { setup_postdata($post); ?>
1, ‘include’ => $nextPost->ID, ‘post_type’ => $post_type, ); $nextPost = get_posts($args); foreach ( $nextPost as $post ) { setup_postdata($post); ?>September 15, 2021 at 1:05 am #1931030ElvinStaffCustomer SupportHi there,
That normally happens with corrupted installation, wrong syntaxes on a child theme template, or if you’re hooking something on the page.
Can you check if you have any of these on your site?
September 15, 2021 at 6:07 am #1931260Pablo Romero GonzalezI have tried to reinstall the theme but it keeps coming out if I give you the url privately you can look at it please.
September 15, 2021 at 10:35 am #1931745LeoStaffCustomer SupportCan you provide the dashboard access for us to take a look?
Thanks.
September 20, 2021 at 5:49 am #1936522Pablo Romero GonzalezHello, I have created a new website and the same thing happens, the same thing happens in all of them so it is a failure of the theme I give you the credentials
September 20, 2021 at 7:01 am #1936580DavidStaffCustomer SupportHi there,
can you check the login and password as its not working for me.
September 25, 2021 at 8:40 am #1942679Pablo Romero GonzalezHello i send you new pass.
September 26, 2021 at 3:17 am #1943082DavidStaffCustomer SupportSorry but i get this response from that URL: No está disponible.
September 26, 2021 at 9:24 am #1943490Pablo Romero GonzalezSorry I’m making security changes. I send you new access. Even so this bug happens to me in all the blog so I do not think it is anything of incompatibilities or something of this style.
I think that the Dispatch style has some error because even with a new installation I get that problem when browsing between blogs.September 26, 2021 at 7:10 pm #1943798ElvinStaffCustomer SupportI’ve tried logging in w/ the credentials provided but it’s not working for me.
As for the issue:
Your site seems to be using the old version of Dispatch that uses a manually coded post navigation added through a Hook Element.
The new version of Dispatch uses a
Post Navigation Block
w/ a Block element. This one doesn’t require the code.Can you try removing Dispatch as a site library template and re-add it again? This should install a newer version of Dispatch.
Alternatively, if you wish to keep the older version, can you check the Hook element for Post navigation and tick if “Execute PHP” is checked? If it is already ticked, can you try disabling ALL plugins except WPSP and GP Premium and check if the code still appears?
September 27, 2021 at 1:40 am #1944026Pablo Romero GonzalezIn which folder do I find the dispach template?
September 27, 2021 at 1:46 am #1944039Pablo Romero GonzalezNew acces
September 27, 2021 at 2:02 am #1944065ElvinStaffCustomer SupportAh I see now.
The quick solution for this is to simply delete the element “Custom Post Navigation” on your list of elements as shown here – https://share.getcloudapp.com/04uxjy01
This one isn’t necessary anymore as you already have “Post Navigation block” that does the same purpose so you can just remove it so the code doesn’t appear anymore. 😀
Note: Your site has a completely separate issue though (see here – https://share.getcloudapp.com/8Lu5AgZl). It’s preventing PHPs from running on Hook elements. You may have to solve that issue if you ever want to use Hook elements. 🙂
September 27, 2021 at 2:06 am #1944067Pablo Romero GonzalezWonderful thank you very much I will study the hook elements.
September 27, 2021 at 9:59 am #1944693Pablo Romero GonzalezI have another little problem when I delete that the pagination disappears completely in some blogs.
-
AuthorPosts
- You must be logged in to reply to this topic.