Forum
Perch_blog_custom not outputting anything
Hi,
I'm using the following page code:
<?php perch_blog_custom(array( 'count'=> 1, 'template' => 'post_in_list_front_page.html', 'category' => 'news', 'sort' => 'postDateTime', 'sort-order' => 'DESC' )); ?>
with the template:
<div class="latest-news">
<h3>Latest News</h3>
<h4>
<a href="/blog/post.php?s=<perch:blog id='postSlug' type='text' />">
<perch:blog id="postTitle" type="text" />
</a>
</h4>
</div>
and my diagnostic report is:
SUMMARY INFORMATION
Perch: 2.8.7, PHP: 5.6.7-1+deb.sury.org~utopic+1, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO Server OS: Linux, fpm-fcgi Installed apps: content (2.8.7), assets (2.8.7), categories (2.8.7), perch_blog (4.6), perch_forms (1.8.3), perch_gallery (2.8.6) App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_forms/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); ?> PERCH_LOGINPATH: /perch PERCH_PATH: /home/vagrant/Sites/dev.planetfurniture/perch PERCH_CORE: /home/vagrant/Sites/dev.planetfurniture/perch/core PERCH_RESFILEPATH: /home/vagrant/Sites/dev.planetfurniture/perch/resources Image manipulation: GD PHP limits: Max upload 100M, Max POST 8M, Memory: 512M, Total max file upload: 8M Resource folder writeable: Yes SCRIPT_NAME: /perch/core/settings/diagnostics/index.php REQUEST_URI: /perch/core/settings/diagnostics/ DOCUMENT_ROOT: /home/vagrant/Sites/dev.planetfurniture HTTP_HOST: planetfurniture.dev:8000
The first thing to do is ensure you are running the latest version of Perch.
If the problem still exists add debug to the page and let us know what it outputs.
Thanks Rachel,
I updated to latest version, then enabled debug after it still isn't outputting any data.
Replace:
with
Seems that I hadn't update the App structure since 2.7, Namely the post.html file to contain the category select. Thanks for your advice.