Must Read Posts 2.0.1
File ID: 95377
Must Read Posts 2.0.1
File Size: 10.0 KB
Must Read Posts 2.0.1 Description
Description: Retrieves posts (or pages) with a certain custom field (e.g. to permanently show your most recommended posts in a widget) and displays them in a list. The plugin uses a custom field named must-read if it exists in a post or a page. If the field exists in a page or post and has the value true, the post automatically will be shown in the widget.
Added: Several sorting options added, check out the widget configuration area.
Use it as a Widget
If your theme supports widgets, simply drag it to your sidebar. You can specify the maximum number of posts to be shown in the widget. You can also change the widget's title to something like "Most recommended posts", "FAQ", "Read first" or whatever you like.
Use it in a .php page
Just put <?php get_mustread(); ?> in your template. You could even use it within your posts or pages using the Exec-PHP plugin that allows you to put php code fragments directly into the text. This allows you to create a static page or a post showing your most recommended posts. The get_mustread function takes 4 optional arguments: title, maximum number of posts to be shown, name of the custom tag, sort order. Optional means you don't have to specify any parameters if you don't need to.
Marking a post or page to be included
If you're using the plugin for the first time, click "Add new custom field" to add the field name must-read and insert true in the value field of the page or post you want to be shown in the new widget. Once you want to display an additional post in the widget, just select it from the custom field drop-down box and insert "true" in the value field. If you don't want the custom field to be named must-read you can also change it to something else. The custom field value always has to start with true for the page or post to appear in the list.
Custom sort order
The plugin features several self explanatory sorting options. You can also specify a custom sort order. Just add a semi-colon and a sort-number after true in the custom value field. The field value for your 1st post would be true;01 and the 2nd field would like true;02 and so on. This gives you full flexibility over the positioning of your posts or pages in the Must-Read-Posts list. If you mix sorted and unsorted posts or pages, the ones with no number will be sorted first. If you have a bunch of posts or pages that you just want to sort at the end use something like true;99 on all of them to move them at the end of the sort order.
Remove a post or page from the Must-ReadPosts list
To remove a post or page from the Must-Read-Posts list set the custom-field-value to false or remove the custom-field from the post or pages.
Related: Field, posts, Custom, Pages, Widget, shown, Plugin, Number, don, mustread, recommended, mustreadposts, title, Change, maximum, sorted, Remove, Scripts, Read, read posts
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
"Most And Least Read Posts Widget" is a free plugin for WordPress, developed by the Whiletrue.it staff to generate lists of the most and least read posts.
The following options are customizable: * number of posts to show * exclude post whose title contains certain words
The plugin starts counting hits once activated, storing them in the "custom_total_hits" custom field without the need of external...
Most Read Posts counts posts readings and shows most read posts in your blog. It allows you to:
* Show hits in the single Post page
* Show hits in Index and Archive pages
* Show most read posts in last X days in the Sidebar...
This is a guestbook where the admin can send newsletter to all users of his forum with current informations. Features like marking of read posts, extensive administration options, censorship and banning, fast database and private messages. This...
The Display Posts Shortcode was written to allow users to easily display listings of posts without knowing PHP or editing template files.
Add the shortcode in a post or page, and use the arguments to query based on tag, category, post...
PostSummary allow you to add a widget with a kind of preview of your posts. You can add a list like the newspaper sites or a list of posts really similar to adsense style. You can mix your posts and adsense with the same aspect. Every instance of...
BabbleBoard comes with what you'd expect from a bulletin board package - forums, sub-forums, private messages, member groups, moderator options etc. etc. but we thought we'd throw in a few extras that we feel makes BabbleBoard stand out from the...
Migrate OG provides various helpers for getting your data into Organic Groups, via the magical Migrate.
Migate OG provides the following to Migrate:
* OG: Organic Group Membership, A new Migrate destination type for content...
Time Zone is multi-platform compatible. This package allows to add time zones to your site. User name and password protected admin area to add time zones, offset, display position, and date/time display. Language file in English included, easy to...
|User Review for Must Read Posts