MiniPosts

MiniPosts, or Asides are small blog posts that live outside of the usual hierarchy of postings. They are usually displayed differently from normal posts, and are occasionally placed on a different part of the root page of the blog.


A snapshot of the Asides plugin running on Pie Palace.

A bunch of different solutions exist to the “Aside” problem. According to the Wordpress site there seems to be two ways of adding asides to your blog. Both involve mucking around with custom tags on every post, or setting up a special category. Morgan Doocy has a very elegant and clean approach that provides a checkbox on the Post page.

I’ve added to Morgan’s plugin, creating a cute little box for the checkbox to live in, an option page pane to edit the appearance of your asides, and a Widget wrapper to give you full floating control of the asides in your sidebars.

Please download the latest version and give it a shot.

Old Versions

Old versions of Miniposts are available below. If you want to install Miniposts 2, I suggest you use the automated installation manager or visit the plugin page on wordpress.org.

0.6.8 (Crazy Connectivity) December 19, 2008
  • Improved appearance of options page
  • Fixed naatan’s smiley code to run without smilies (tip: Lan)
  • Moved download hosting to wordpress.org
  • Improved handling of the meta field to prevent post duplication
0.6.7 (Boss Bass) December 14, 2008
  • Fixed up appearance in Wordpress 2.7.
  • Added naatan’s smiley code
0.6.6 (Angry Armadillo) March 8, 2008
  • Added global keyword to allow loading on WP 2.5, fixed mini_posts_where() to filter posts from subscription feeds, fixed up meta box for post edit page to look more WP2.5y.
0.6.5 (Flatulent Kitten) July 3, 2007
  • Possible fix for the “missing pages” problem: modified the filters for posts_where and posts_join to be little less complex. Fixes the problem on this blog, so it may help elsewhere.
  • Note: This shouldn’t be considered a full release, as it just fixes a specific bug. If you haven’t experienced the pages disappearing from the admin view, then it probably isn’t worth installing this version.
0.6.4 February 10, 2007
  • Prevent error from occuring when the widget plugin is not installed.
  • Prevent miniposts from losing their minipost status on comment. Due to a change in Wordpress.
0.6.3 January 28, 2007
  • Added excerpt/more support
  • Made Asides appear in search results
  • Made Aside title editable
0.6.2 September 24, 2006
  • Fixed bug the included unapproved comments in the comment count of a minipost.
  • Added the %date% format specifier.
0.6.1 June 21, 2006
  • Fixed bug that prevented comment counts from being displayed properly.
0.6.0
  • Original release

Installation Instructions

Please note, before you install MiniPosts2, you must have the Widgets plugin installed.

  1. Download
  2. Copy the zip file to the wp-content/plugins directory of your blog
  3. Unzip miniposts2.zip
  4. Login to your Wordpress blog as administrator, and go to the Plugin panel of the dashboard.
  5. Click on the Activate link beside MiniPosts2

The MiniPosts2 plugin should now be activated.

Upgrade Instructions

To upgrade an existing installation of MiniPosts2 to a newer version, follow these steps;

  1. Login to your Wordpress blog as administrator, and go to the Plugin panel of the dashboard.
  2. Deactivate the current copy of MiniPosts2.
  3. Delete the file wp-content/plugins/miniposts2.php from your blog.
  4. Download the latest version of MiniPosts2.
  5. Copy the zip file to the wp-content/plugins directory of your blog.
  6. Unzip miniposts2.zip.
  7. Login to your Wordpress blog as administrator, and go to the Plugin panel of the dashboard.
  8. Click on the Activate link beside MiniPosts2.

These steps will not modify any existing posts you have flagged as an aside. (Of course, if it does, I’m not responsible)

Controlling the Appearance of the MiniPost List

To control the appearance of your asides list, go to the Options pane of the Admin Interface, and select the MiniPosts tab.

MiniPost appearance is controlled through the Options page. To edit the options,

  1. Go to your blog’s admin dashboard
  2. Click on Options
  3. Click on MiniPosts

The options will look something like:


Screenshot of the options page of MiniPosts2 0.6.3

The options have the following effects:

Show/hide
Filter mini posts from the Loop
Prevents MiniPosts from being displayed on the main page.
Filter mini posts from subscription feeds
Prevents MiniPosts from being shown to anyone viewing with an RSS reader.
Maximum number of miniposts to display
Maximum number of miniposts to display
Limits the number of MiniPosts shown. If this value is set to zero, then all MiniPosts will be shown (which is a bad idea). If this value is set to some other number, at most that number of miniposts will be shown.
Minipost Title
The title to display at the top of the MiniPost widget.
Minipost Format
How each Minipost should appear. The text entered into the box will be shown for every Minipost, with the appropriate values filled in for %title%, %post%, %commentcount%, %date%, and %permalink%. In the current version, the Miniposts are wrapped in the text <div class="miniposts"> and </div>.
More Format
If you use an Optional Excerpt or the <!--more--> keyword in one of your asides, the word %more% will be replaced with the text you supply in this field. You probably want it to be a link to your full post. Note that all of the other keywords (such as %permalink%) can be substituted into this field.
Date Format
A specification of what the date should look like. The date format is a collection of characters that PHP’s date() function understands. The default is Y/n/j, which shows the year, month, and day that the post was saved. If you don’t use the %date% specifier in the Minipost Format, the date will not be displayed, regardless of value.

Creating a MiniPost

Creating a post with the MiniPost2 plugin is pretty much the same as creating a normal post. In order to set a post as being a MiniPost, go to the Write Post page as normal. If you’ve installed MiniPost2 properly, you’ll see a box that looks like:

minipost-0.6-checkbox.png

To set the current post as a Minipost, click the checkbox and Publish. Your posting will appear, either on the front page (if you have left the “Filter Miniposts from the Loop” blank), or in your asides list.

Creating a Teaser

These instructions apply to MiniPosts 0.6.3 and above

Sometimes you don’t want your entire post to appear in the miniposts widget, you’d rather see a short introduction, followed by a “Read More” link that leads your reader to the entire post. As of MiniPosts2 0.6.3, that is supported.

There are two ways of creating a teaser: you can create an excerpt, or you can use the <!--more--> quicktag in the text of your post. Technically, the teaser only refers to the second technique, but we’ll use it as a blanket term to refer to both approaches.

Instead of the full length post appearing in the MiniPosts widget, only the teaser will show up. By default, your teaser will be followed with the text “More…” linked to the full post. You can change the linked text by editing the More Format on the options page.

MiniPosts API

MiniPosts2 provides two functions, is_mini_post(), and get_mini_posts().

is_mini_post()
This function takes no arguments and can only be called from within the Loop. Returns true if the current post is a minipost, and false otherwise.
get_mini_posts($format = null, $limit = null)
This function displays the existing miniposts. If either of the arguments are specified as non-null then the display is changed. The $format variable is used to specify a format, over-riding the values specified on the Options page.

392 Responses to “MiniPosts”

  1. 2008.Feb.26 @ 08:02

    Sorry about that…it was the margins. Try this:

    h4.liinternal {margin: 10px 0}

    You can change ‘10′ to how little you want.

  • 2008.Feb.28 @ 06:21

    Last question (I hope…). How can I change the space between the sentences? I think I can do that by changing the line-height, but I don’t know how…
    I’m almost there! Thanks!

  • 2008.Feb.28 @ 08:27

    From what I see in your sidebar, there is only one line per post, so I don’t see what space you’re talking about.

  • 2008.Feb.28 @ 08:37

    Scribu!

    I posted, especially for you, a message to show you what I mean.. Look at the sidebar that is called ‘Minipostjes’.

  • 2008.Feb.28 @ 13:38

    p.minipost {line-height:75%}

    p.minipost is the selector you need. ’nuff said.

  • 2008.Feb.28 @ 16:20

    Nope.Doesn’t work.
    ;nuff said back.. :-(

  • 2008.Feb.28 @ 23:18

    First of all, congrats for the great job. This is just the best plugin for Asides in WP!

    Second, i’d like to report a bug. I’ve bem testing it in two different WP installations. In both, the posts marked as asides are appearing in feeds. Of course, i’ve already double checked the filter box, that should make this not happen.

    Do you know how to fix it? The versions of WP are 2.1 and the latest.

    Thanks for the attention =)

  • 2008.Feb.29 @ 05:36

    That’s because in the minipost template you forgot to add a at the end!

    That’s the last message I’m writting on this topic. Install Firebug and learn CSS properly!

  • 2008.Feb.29 @ 05:36

    That’s because in the minipost template you forgot to add a closing at the end!

    That’s the last message I’m writting on this topic. Install Firebug and learn CSS properly!

  • 2008.Feb.29 @ 05:38

    [sorry for the multiple message]

    That’s because in the minipost template you forgot to add a closing ‘p’ tag at the end!

    That’s the last message I’m writting on this topic. Install Firebug and learn CSS properly!

  • 2008.Feb.29 @ 08:34

    You’re so right!
    But thanks a lot. It works!

  • 2008.Mar.02 @ 07:20

    this plugin is one of my favorite plugins. But it doesnt work in wordpress 2.5. it cant be actived.Saying that a fatal error ocurred. Will you fix this. Please!.

  • 2008.Mar.05 @ 17:57

    hi,
    thanx for the work on this asides plugin. the interface is neat, the widget support is great. but as mentioned in the comments before (2 or 3 times) the show hide option to filter mini posts from subscription feeds doesn’t seem to work. the posts still show up at the rssfeed. it would be nice if someone could notice this problem and write some lines about how it could be solved or if it is on the todolist for the next minipost-version…. thx.

  • 2008.Mar.05 @ 21:33

    Howdy all,

    Regarding the fix for WP 2.5: that won’t be implemented until after April 4 at the earliest.

    As to removing miniposts from RSS feeds: I’m not going to make any promises. Sorry.

    e

  • 2008.Mar.08 @ 21:28

    Bolshi Yarblockos, my droggies. Viddy thou this fine new version of Miniposts. With not only WP 2.5 compatibility, but a fix for horror show “filter from feeds” problem, it’s nowhere near as good as the old in-out, but download it anyway me gullivers.

  • 2008.Mar.12 @ 10:57

    didn’t thought that the feed problem will be solved that soon. thank you very much!

  • 2008.Mar.12 @ 12:36

    Thanks for having already upgraded your plugin !

    For the possibility ot remove miniposts from RSS feeds, Hope, if you implement this, that it will only be an option…

  • 2008.Mar.13 @ 12:32

    @koz: 0.6.6 will remove posts from RSS feeds.

  • 2008.Mar.14 @ 12:24

    Hi. Thanks for the plugin.

    I had 0.6.5 and just installed 0.6.6, but with either version I have a problem: if you look at my pages at http://www.MaxiMovieBlog.com/ you will notice that all line breaks are stripped out of the post. I also noticed that there are no line breaks in the RSS, so many of my syndicators (like Reuters) have complained that some of my posts (marked as miniposts) are malformed on their websites.

    I tried to play with “Suppress auto line breaks in miniposts”, but it doesn’t seem to change anything.

    Can you help?

  • 2008.Mar.17 @ 07:44

    Great Plugin, I absolutely adore it !

    Just a question though, is there a way to keep my miniposts away from the main feed *only* ?
    eg. minipost update will appear in “site_url/category/asides/feed/”, but not in “site_url/feed/”

    if you can point me to the right direction I would gladly tackle it myself.
    thx in advance.

  • 2008.Mar.17 @ 17:26

    Hi. All my miniposts, when displayed, lose all line breaks inside the post. If you look at my website you’ll see on the right side. Also, they end up like that in the RSS too, so syndicators complain about it. Not good…

    Is there a configuration option to use or is it a bug, or a problem with CSS? Please look into it.

  • 2008.Mar.17 @ 17:34

    Is there a simple way to get MiniPosts to only display future posts? I tried changing “WHERE post_date < ‘$now’ AND post_status = ‘publish’” to “WHERE post_status = ‘future,publish’” but it didn’t seem to do the trick. Any advice would be helpful. Thanks!

  • 2008.Mar.30 @ 15:14

    This is exactly what I was looking to use. Thank you! And keep up the excellent (and non-paid) work. ;)

  • 2008.Mar.30 @ 16:24

    @Michelle: Thanks for realizing that this is unpaid (ie, for fun) work.

    @John: I’m not too sure. I suspect that WordPress will do its best to prevent you from displaying future posts, so you may have to do some tomfoolery to get around that. You may also want to change your “WHERE post_status = ‘future,publish’” to “WHERE post_status = ‘future' OR post_status='publish’” - I don't think SQL allows implicit ORs in predicates.

    @DF: Your question is complex and thought provoking. I don't think it would easy to keep the post out of the main feed but in your category feeds. There are some "is_" methods that check the request type. If there's an "is_category_rss()", then you could use that to disable the predicate addition in WHERE callback. Check the change-log at the top of the PHP file for the names of the WHERE functions.

    @Maxim: Sorry dude, I do this for fun. When you post "... or a problem with CSS? Please look into it." I get the feeling that you're telling me to do something. Given my current bogged down state (house to clean, work to catch up on, sick as a dog), it's unlikely that I'll be able to look into your problem in the foreseeable future.

  • 2008.Mar.30 @ 20:01

    Okay – thanks for the response. I’ll do some fiddling with the code.

    Also, I’ve made versions of your plugin that allow multiple miniposts – it requires multiple instalations of the plugin (eg Miniposts2, Miniposts2_2, Miniposts2_3), which is somewhat messy, but it works flawlessly. E-mail me if you would like them.

  • 2008.Apr.03 @ 10:25

    Hey, this looks great! I’m having some weird issues with WP 2.5, though:

    - in the list of posts on the plugin configuration page, some of my posts appear three or four times
    - even with “filter from loop” checked, those posts appear in both the main loop and the minifeeds. I wonder if there’s a problem in your WHERE clause that’s selecting the posts more than once?

    Anyway, fantastic plugin.

  • 2008.Apr.10 @ 16:09

    Hi. When I click on Miniposts from my settings I get the following error.
    Fatal error: Call to undefined function load_plugin_textdomain() in /home/virtueco/public_html/audaciousme/wp-admin/miniposts2.php on line 291.

    Can you please help?

  • 2008.Apr.11 @ 15:03

    It’s great! Thanks!

  • 2008.Apr.13 @ 14:02

    Thanks for this, been looking for a simple one like this. The widgetized plugin works fine on my sidebar and on the new wp v2.5. Great!

  • 2008.Apr.17 @ 11:33

    Can this be used with an external editor? I gave up on the WP editor years ago, using Ecto. I’m not sure I will be able to set the status in Ecto?

    This really should be an OS X widget and/or tie into Twitter, that would be cool.

  • 2008.Apr.18 @ 05:31

    Nice plugin!
    one question; When I put an image from nextgen gallery in the post it shows only the tag, like: [singlepic=5,110,600,,left]. When I go to the full post it shows the image(thumbnai) correct. Any Idea how this can be?

  • 2008.May.09 @ 13:31

    I just had one minor issue with the more link not working. Easily fixed by making sure the more format had: “%permalink%” as opposed to “%permalink”
    I’m not sure whether this is a minor bug with the plugin or just something I messed up along the way :D
    Anyways, thanks! Excellent work.

  • 2008.May.14 @ 20:21

    Hey I was wondering if you could just give me the code for the sidebar, I dont want a widget it seems to screw up the rest of my bars I rather have the php coding to display it and manually edit it in, do you know what that would be?
    Thanks

  • 2008.May.16 @ 05:28

    I love this plugin!

    I use it on my website at http://www.asterisko.com.br.

    I only wish it was more compatible with WP 2.5… The widgets page (admin) gets really messed up because of it.

    Also, if I may add a suggestion: in the write post page (admin), make the checkbox for it appear at the top, near “Keep this post private”.

    Thanks a lot!

  • 2008.May.19 @ 02:46

    Hello;

    The plugins works very well till I upgrade to WP 2.5. If I use your last version (0.6.6) all my post will be duplicated.
    I was very worried at first because I didn’t know what was the problem, I was checking my databse and I reinstalling WP2.5….
    Your plugin is very use to use and effective, I would like still using it. I’m not a programmer so I don’t know what could be the problem. Could you help me?

    Thank you very much
    Roy

  • 2008.May.22 @ 04:05

    Hello Erigami;

    Maybe this could help with duplicated posts:
    http://weblogtoolscollection.com/archives/2008/05/17/how-to-avoid-duplicate-posts/

  • 2008.Jun.01 @ 19:03

    Can i put image from the post at the miniposts?

  • 2008.Jun.27 @ 21:09

    I tried it on my site, but it screwed up the posting order on my blog, and my blog would only show weird posts: like yesterdays, May 1st, and other weird ones. All the others were missing. The posts were from different categories, too. I only post a post to one category, so I have no idea what went wrong.

    Kenneth

  • 2008.Jun.27 @ 21:10

    Oops.. Running WP2.5.1 with a bunch of other plugins, but it’s not interference because I turned off the other plugins and got the same result. Soon as I deactivated yours, it went back to normal!

    Kenneth

  • 2008.Jun.30 @ 02:53

    Very cool, very easy to use widget. No problems with the install.

    Suggestion: Offer an option to randomize the order of the posts. I’m using it to display 3 of 8 to 10 “Special Offers”. I would like the 3 to be randomly selected.

    Thank you very much.

  • 2008.Jun.30 @ 03:41

    # It would be nice to add multiple Asides. For example, I need one for Special Offers and another for New Items.
    # Also, I need help with explaining the behavior. I have seven posts in a new 3-column blog. They are all Special Offers posts and so they are all marked for MiniPost. MiniPosts’ limit is set to displaying 7 posts. However, I only see four MiniPosts in the right column. Interestingly, I see 3 normal-sized posts in the center column where the limit is set to 10 posts. I am scratching my bald head trying to understand why I don’t see all 7 normal-sized posts in both the center column and 7 MiniPosts in the right column. If this is by design, then is it possible to suppress items marked MiniPost from showing up as normal-sized posts in the center column altogether?

    Thanks again.
    Mitch

  • 2008.Jul.05 @ 00:13

    Anyone who is interested in styling/skinning/formatting individual posts should take a look at chameleon 0.1.0.

  • 2008.Jul.18 @ 12:29

    My new theme doesnt have a “loop” file…
    And I dont see the minipost on the homepage

  • 2008.Jul.18 @ 17:11

    Thanks for your great plugin :)

  • 2008.Aug.10 @ 16:53

    Please how can I use it without Widgets ?

  • 2008.Aug.10 @ 23:58

    great plugin!!!

    but my only problem is that miniposts are excluded from my index.php page from appearing in the “recent posts” but they appear in single post page search and archives page…any fix?

  • Pingback from Miniposts, Asides, δοκιμή. – op111.net
  • Pingback from Five WordPress plugins you may not know about, and how to make a “baby child theme” – op111.net
  • Pingback from Wordpress En iyi eklentiler ve açıklama 400 adet | İnternet Çöplüğü
  • Pingback from Mały serwis ogłoszeniowy w WordPressie | Blog Adama Aleksandra Klimowskiego
  • Reply

    You can use these HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    If your website is claim enabled, it will be notified that you have posted here.