(2013-06-29, 03:00:59)SteveSy Wrote: I'm looking at the function plz try this it should work for u
PHP Code:function show_blog_tag_home($tag)
{
$Blog = new Blog;
$all_posts = $Blog->listPosts(true, true);
foreach ($all_posts as $file)
{
$data = getXML($file['filename']);
if(!empty($data->tags))
{
$tags = explode(',', $data->tags);
if (in_array($tag, $tags))
{
show_blog_post_side($file['filename'], true);
break;
}
}
}
}
add it inside " frontEndFunctions "
(2013-06-23, 03:53:29)xxdex Wrote: Can some one a help my and upgrade very good function :
<?php show_blog_recent_posts(true, 80, true, 'read more'); ?>
this function is give to us all cathegory shrot post ...
how to get only one cathegory recent posts ?
thank You very much. i was save this function in frontEndFunctions.php but when i write in template file a line:
<?php show_blog_tag_home('nameofcategory')?>
then i'm no taken any post from category list...
what i do wrong ?
---
it is only a proposed Appendix
This plugin is really cool.
Development and handy to the comments for each entry and management comments
user plugin: scroll to top