2015-02-10, 12:11:36
madmarch:
I'm currently in the process of giving the layout methods a bit of an overhaul which should hopefully solve all the issues people have been having with images. GitHub issues: #55 and #56
salvamaine:
This issue may have been fixed in GitHub issue #29 which will be part of the next update, however I will double check.
krzysiuus:
The function you have shown there is not used for that purpose, rather it is used like this:
I think you might be more interested in using the following function:
This function uses the $Blog->listPosts function from the primary class to get the list of posts. $Blog->listPosts automatically does the date sorting first so the posts listed in the category will also be sorted by date too.
I'm currently in the process of giving the layout methods a bit of an overhaul which should hopefully solve all the issues people have been having with images. GitHub issues: #55 and #56
salvamaine:
This issue may have been fixed in GitHub issue #29 which will be part of the next update, however I will double check.
krzysiuus:
The function you have shown there is not used for that purpose, rather it is used like this:
Code:
/**-------------------------------------------------------------------------------------------------
* show_blog_recent_posts($excerpt, $excerpt_length, $thumbnail, $readmore)
* Shows a list of recent posts formatted based on arguments given.
*
* @param $excerpt (bool) True: Show excerpt - False: Title only
* @param $excerpt_length (int) Length of excerpt. Default if not given
* @param $thumbnail (bool) If true a thumbnail will be displayed for each post
* @param $read_more (string) A text string to show for "Read More" link. Not shown if null
* @return string or void
*/
I think you might be more interested in using the following function:
Code:
/**-------------------------------------------------------------------------------------------------
* show_blog_category($category)
* Shows posts from a requested category
*
* @param $category (string) the category to show posts from
* @return void (void)
*/
This function uses the $Blog->listPosts function from the primary class to get the list of posts. $Blog->listPosts automatically does the date sorting first so the posts listed in the category will also be sorted by date too.
Check out my website: JohnStray.com