Blog index.php is not outputting any posts.
I am new to perch and I have been following the blog tutorial but I am stuck trying to output my blog post list to my blog index page. I'm calling the perch_blog_recent_posts function but it doesn't seem to be working.
I've downloaded the tutorial source files from github and adapted the post.php page to and I am able to preview my blog posts from the back end but I can't see any posts listed on the index page.
I've included a stripped version of my page code below along with my diagnostic report.
Does anybody have any suggestions as I'm really stuck.
<?php include('../perch/runtime.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <body> <!--Open container--> <div id="container"> <div id="main"> <div class="header"> <div id="header-gradient-image-blog"> <nav id="desktop-menu"> </nav> <nav id="mobile-menu"> </nav> <!--Close header--> <section class="main-text"> <h1>Blog</h1> <?php perch_blog_recent_posts(10); ?> <br> </section> <hr> <div id="footer"> <!--Close footer--> </div> </div> <!--Close container--> </div> </body> </html>
Summary information Perch: 3.1.1, PHP: 7.1.8, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO Server OS: Darwin, apache2handler Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1), perch_forms (1.11) App runtimes: <?php $apps_list = ['perch_forms','perch_blog' ]; PERCH_LOGINPATH: /perch PERCH_PATH: /Users/jimmyp757/Desktop/Web Projects/Sites/perch PERCH_CORE: /Users/jimmyp757/Desktop/Web Projects/Sites/perch/core PERCH_RESFILEPATH: /Users/jimmyp757/Desktop/Web Projects/Sites/perch/resources Image manipulation: GD PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M F1: 3b606135b33e6a102526838f4152a807 Resource folder writeable: Yes HTTP_HOST: localhost DOCUMENT_ROOT: /Users/jimmyp757/Desktop/Web Projects/Sites REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php