I am looking for a PHP script / block that creates a simple paging for individual Pulse blog posts. I know a bit of HTML and CSS, but not much about PHP, so I canât do it myself.
What I need are just two links/buttons, âPrevious Postâ and âNext Postâ. If there are no more previous/next posts, the respective link/button should be disabled or removed.
Hello Frank, there are âolderâ and ânewerâ-buttons that appear after a certain number of blogposts. That depends on what you set in config.php. It is set to 5, but you van easily change that.
Succes!
Mary
Thanks, Mary. I already recognized these buttons. But I am looking for similar buttons that only appear on pages containing a single post, so that the reader can continuously read all posts.
Moreover, if such links are present, Safari Reader Mode seems to automatically concatenate all posts into a single page.
I meanwhile managed to do it myself. For anybody who is interested, hereâs the code (but beware, itâs just amateur programming ). Youâll have to edit the variables to fit your needs.
Maybe I should have read this thread before I started doing the same
Anyways, here is a different solution. It uses the same link names as the blog to avoid duplicate content.
Pulse 4.6
/inc/tags/blog.php
Find lines 78-80
if ($disqus_comments == true){include('inc/plugins/disqus.php');}
echo "</div>";
}