Based off the Advanced Most Recent Posts plugin by Yakup GĂ–VLER. Display most recent posts from selected categories or current category or all catego
Select checkbox on widget's settings called 'Get posts from current category'.
You have to write their category's ids -separated with a comma- to 'Categories' textbox.
template tag: yg_recentposts( $args )
shortcode: [amrp] with args
Original author's website.
If you need serious customization, please go learn CSS. I will not provide extensive CSS support. (Sorry - there are just far too many variations, and I do all this in my spare time)
The most frequest request I get has to do with aligning the image to the right or left. To get started with customization, create a file called amrp-styles.php (really, any name will do) and upload it to wp-content/mu-plugins (you may need to create this directory).
In that file, paste the following
<?php
/*
AMRP Styles
*/
add_action('wp_head', 'amrp_styles');
function amrp_styles() {
?>
<style type="text/css">
.advanced-recent-posts {
/* remove bullet points */
list-style-type: none;
}
.advanced-recent-posts li {
}
.advanced-recent-posts li a {
}
.advanced-recent-posts li img {
float: right; /* change to left if you'd prefer */
margin: 3px;
}
</style>
<?php
}
Of course, if you have the skills, feel free to relocate that CSS.
Requires: 2.8 or higher
Compatible up to: 3.2.1
Last Updated: 2011-7-28
Downloads: 39,483
Got something to say? Need help?