We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Help With Blog Archives
I have two issues relating to displaying links and resulting articles from post archives.
- This may be another bug in the Blog app or incorrect code. I referred to the docs on advice, to create a link to show posts by month and noted the count was using qty in example. However I read elsewhere that qty was now count.blog.post.
However this does not seem to work either the link displays as November, 2014 ()
Here is the code for the archive link:
<a href="/news/archive/<perch:blog id="postDateTime" format="m" />-<perch:blog id="postDateTime" format="Y" />" class="w-links-category-anchor"><perch:blog id="postDateTime" format="%B" />, <perch:blog id="postDateTime" format="%Y" /> (<perch:blog id="count.blog.post" />)</a>
- I have set up .htaccess rules and all relevant code to display the archived articles filtered by the month/year, it appears to function, however all articles are displaying.
Here is code for archive page:
<?php perch_blog_custom(array( 'template' => 'post_in_list.html', 'paginate'=> true, 'count' => 8, 'sort' => $sort_by, 'sort-order' => $sort_order, )); ?>
These articles have both been created in November, but I went back in and changed the creation date of one to October. Should this in theory stop it displaying if November is chosen as the archive to view?
Want to reply to this thread?Login with Perch