This plugin allows you to display an unordered list of links to a specific author’s latest posts (or a list of multiple authors). It can be called either with a shortcode or from within a theme file.
To call it with a shortcode, use
[latestbyauthor author="username" show="3"] where ”username” is the login name of the author (or a comma separated list of multiple authors) and ”3” is the number of posts to display. If you don’t specify an author or a display number, it will show the latest 5 posts from the author of the current page. If you want it to display the post excerpt as well, you can use the following code:
[latestbyauthor author="username" show="3" excerpt="true"] This will only show exerpts that you have entered manually.
To call it from within a theme template, you have to wrap it in this PHP function:
<?php echo do_shortcode('[latestbyauthor author="username" show="3"]'); ?>
- Upload the
latests-posts-by-authorfolder to the
- Activate the plugin through the ’Plugins’ menu in WordPress
<?php echo do_shortcode('[latestbyauthor]'); ?>in your templates or
[latestbyauthor]in your posts
- No questions yet
That’s right, none so far.
Added custom post type support.
Added filter hooks:
Removed post thumbnail support that was only available by uncommenting the relevant code. Thumbnails can be added by the theme or another plugin using the new filters.
Corrected an issue with post thumbnail support. Thanks to gkemp on the WordPress.org forum for reporting it.
Detta tillägg har inga recensioner.
Bidragsgivare och utvecklare
”Latest Posts by Author” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.Bidragande personer
Intresserad av programutveckling?
Updated the documentation.
Added a missing
</ul> tag. Thanks to Ken Howard for pointing that out.
Added support for multiple authors. You can now use a comma separated list of authors. Thanks to Zgunder for the suggestion.
Updated the query to exclude the current post. This prevents a link to the current pate from being displayed. Thanks again to Ken Howard for the help on this one.
Added better inline documentation.
Switched from using the $wpdb object to the WP_Query class to gather posts from the database, greatly simplifying the plugin code. Thanks to Jack Rugile for pointing out some issues with the last version that led to this update.
Fixed reference to guid. Replaced with get_permalink()
- Tested with WordPress 3.0
- Fixed documentation.
- Added the option to show post excerpts.
- Now only shows published posts (not drafts). Thanks for catching that Welzie.
- First version, no changes yet.