Hi,
I want to use Page-Links Plus plugin to add pagination to my WordPress pages, however it only works if ” wp_link_pages” is in the theme. I’ve checked and I can’t find it. If it’s not in the theme can you tell me where to add it please.
Thanks
Hey ZakMun,
Are you referring to this function? https://codex.wordpress.org/Function_Reference/wp_link_pages
Best regards,
Rikard
Hi Rikard,
Yes that is the one
Kind Regards
Zak
Hello?
Hoping someone can solve this. I’m sure its not a big problem
Hi,
You have to manually add it in the page.php or the includes > loop-page.php template. If you’re using the theme’s builder, edit the template-builder.php file.
Best regards,
Ismael
Thanks for that Ismael
Could you be more specific as to where about it needs to go in the php file? Sorry i’m not an expert at coding
Thanks
Zaki
Hi,
I just reviewed the function’s documentation and it says that it has to go inside the loop, so you have to add it in the includes > loop-page.php file, right after the content around line 26:
//display the actual post content
echo '
<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>';
the_content(__('Read more','avia_framework').'<span class="more-link-arrow"></span>');
echo '</div>
';
// https://codex.wordpress.org/Function_Reference/wp_link_pages
Best regards,
Ismael
Hi,
Do you have a test page? Please provide the url of the site. You may need to contact the plugin developer for additional help.
Best regards,
Ismael
Hi,
Yes please do contact the plugin developer, would be really helpful.
Best regards,
Basilis
Hi,
Very well, thats fine
Zak
Hi,
This has been sorted out.
Thread can be closed.
Thanks
Zak