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.

393 Responses to “MiniPosts”

  1. 2007.May.24 @ 12:10

    e,

    Here’s my setup to help you debug. Thanks again in advance for the support.
    1. Install WP 2.2
    2. Use default theme
    3. Install MiniPosts 0.6.4
    4. Create category notes.
    5. All posts that are miniposts are in and only in the category notes.
    6. Create posts for regular blog (with any other category besides notes)
    7. Create posts for miniposts

  • 2007.May.25 @ 18:54

    Thanks for the reply E — okay, it seems that new pages are now appearing in the list — but — each of my pages I created earlier are now listed 5 times. That is, each page 5times, and each of that page’s subpages x5 for each instance as well.

    Any ideas?

  • 2007.Jun.08 @ 10:32

    Any luck replicating the search bug?

  • 2007.Jun.20 @ 18:31

    am i the only one having this problem? I uploaded the plugin, activated, created a minipost and it shows. But whenever I click “MiniPosts” under the Options Tab on the Dashboard I get a “can’t find that page ” message. I followed all the steps but did I miss something?

  • 2007.Jun.21 @ 01:20

    This is exactly what I was looking for. I looked through so many plugins and this one is perfect. Thanks buddy!

    P.S. Adding 4 and 8 was a little confusing at first. :|

  • 2007.Jun.21 @ 09:05

    @Teddy: I haven’t tried yet. Sorry.

    @ragmag: You don’t have the widget plugin installed (IIRC).

    @Chris: Sorry. I have to keep the comment spam down somehow.

  • 2007.Jun.21 @ 18:05

    E,
    don’t know which plugin you referring to! I have the WP widget plugin installed but can’t find the IIRC plugin. Maybe you can provide a link?

  • 2007.Jun.23 @ 11:47

    MiniPosts2 unfortunately does not work with Gengo. As soon as uploaded to the plugins directory, gives an error message referring to line 1143 in gengo.php
    Any solution? I love that miniposts plugin!
    Kind regards from Austria
    eliZZZa

  • 2007.Jun.23 @ 19:48

    @ragmag: Sorry, IIRC means “If I recall correctly”. If you have the widget plugin installed, then I’m not sure what would cause that.

    @eliZZZa: I’m sorry to hear that Gengo and MiniPosts2 don’t get along. Since I’m short of time, I won’t be able to look at it. If you can make any fixes and provide patches to the souce, I’d be happy to add them to the next version.

  • 2007.Jun.25 @ 16:07

    e,
    man I really wish you had a answer for this problem! Is it because i’m using the latest version of Wordpress? I see several people have reported the same problem of receiving the “missing page” message when trying to view the plugin under Options. How did they get it to work?
    I’m gonna be forced to use the Sideblogs plugin now, which isn’t as great

  • 2007.Jul.03 @ 22:59

    Sorry to hear that ragmag. But this is opensource. You get what you pay for. =(

  • 2007.Jul.03 @ 23:12

    For those of you following along at home: There’s a bugfix release of Miniposts2 available. It fixes the missing page problem in the admin view.

  • 2007.Jul.05 @ 02:34

    man, i really wanted to use this but making it make me us the widgets forces me to have the pain of making my own plugin… :(

  • 2007.Jul.05 @ 04:26

    Hey e.

    Just wondering if you know when the next update will be? Only reason I ask is because I know you are pressed for time, and a little transparency may help keep the ’support calls’ down?

    I’ve not been using miniposts2 for some time now as I’m waiting on the next release but my temporary solution isn’t working out, so it would be good to know what your plans are, or should I just head off and find something else?

    This is not a dig, and I appreciate all the time and effort that you’ve put into Miniposts so far, thank you!

  • 2007.Jul.10 @ 12:36

    I am currently using this plugin at my site (www.collegebeing.com) on the top right to show my daily deals. I have the same double posts when searching problem that other people are having. I also have a problem that messes up my whole page when using at least one version of ie. There does not seem to be an ending at the end of the minipost plugin. Check my source if you want but I have already done so twice.

  • 2007.Jul.10 @ 12:38

    Me again, it won’t let me enter code. This is what I meant to say:

    There does not seem to be an ending {/ul} at the end of the minipost plugin.

  • 2007.Jul.13 @ 11:01

    Hi Gordon,

    I had been hoping to update soon, but I’m caught up in other projects at the moment. Until I can get the problems described above to manifest on my site, or they prevent me from doing something I want to do, don’t expect an update. Sorry about that, but there just aren’t enough hours in the day. =(

  • 2007.Jul.13 @ 11:02

    cm: Perhaps you missed the API section above, where it provides two functions to add miniposts to WordPress without using widgets.

  • 2007.Jul.14 @ 11:56

    I have this really really annoying bug. I think the problem is the WP version (2.2.1) because the bug occurs both with miniposts 0.6.4 and 0.6.5 and in two different blogs. Up to WP 2.1.3, the version I was using before, there was no problem.
    The bug is simple and straight: I loose from my home a month or more of posts and i really can’t understand why: on one blog (veronablog.com) I loose a month of posts, on the other (fratellidita.eu) three.
    What the hell could it be? :|

  • 2007.Jul.15 @ 23:21

    Hey,
    I like the plugin so far. Looks good.

    However, I was wondering if it was possible to add an option which instead of using %title% for the title, to have another option which allows the user to click on the title, but instead of redirecting to the permalink page, be redirected to another site. Much like fquick [http://www.fahlstad.se/wp-plugins/fquick/] does.

    Maybe it can be done in the Wordpress custom field box on the write page? Just wondered if you could do this?

    Thanks,
    Nice plugin.
    Dave Bowker

  • 2007.Jul.17 @ 04:23

    When I have “Filter mini posts from the Loop” checked, posts by other authors do not appear in the loop. It is surely due to this plugin: version 0.6.5. One way I got around this was having me (the admin) edit the post without editing it and just hitting save. As of yet, I will just keep this option off, but please fix this issue.

    Also, thanks for fixing the search bug. I helped a lot.

  • 2007.Jul.25 @ 12:55

    Great plugin!

    I’d like to place some text beneath the Minipost section title and the actual miniposts.

    I tried adding the text before the minimpost format code, yet what I wanted to add simply got plugged into the loop, rather than appearing once above them all.

    Any ideas of where to place the text?

  • 2007.Jul.27 @ 20:30

    Hello e !
    I first used the minipost plugin from doocy.net, and then your own modifications. Thank you for this!!!!
    My only concern (but it’s not little) is that using this plugin I think it creates an incredible number of useless metadata (such as _mini_post
    0).

    And my sql db is something like 44 megs!!!! I fear it’s because of that. What do you think?

  • 2007.Aug.17 @ 01:52

    I’ll echo a couple of other people here and say that I’d love a non-widget version. A lot of older Wordpress themes are not widget-ready.

  • 2007.Aug.18 @ 01:16

    In order to get this to work with Genfo, the load_plugin_textdomain should probably be used in a different way.

    Move
    load_plugin_textdomain(‘MiniPosts’);

    to
    function MiniPosts_init ()
    {
    load_plugin_textdomain(’MiniPosts’,’wp-content/plugins/MiniPosts’);
    }
    add_action(’init’, ‘MiniPosts_init’);

    See http://wp-multilingual.net/download-gengo/compatibility/en/

  • 2007.Aug.21 @ 02:36

    I love the plugin but it doesn’t seem to be filtering the miniposts out of the feed. I definitely have that option checked but you can see they still show. Could it be my feedburner plugin?

  • 2007.Aug.22 @ 10:42

    My miniposts are being taken out of minipost status and thrown into the regular loop, AGAIN, when a comment is left on posts. When I updated to the 0.6.4 version, this was no longer a problem but it just started happening again.

    Any knowledge as to why?

  • 2007.Sep.16 @ 13:20

    How i can exclude my mini posts from feeds(i’m using feedburner)?

  • Trackback from Leonaut.com - MiniPosts for wordpress...
  • 2007.Dec.29 @ 14:50

    Love the plugin! I’ve got it working fine as far as putting my miniposts in the sidebar, and they don’t show up in the loop on my blog’s home page.

    However, if I go to single post view, the miniposts show up in the previous/next navigation–is there a way to prevent them from showing up anywhere but in the sidebar (and possibly a page that I create just to display miniposts using the appropriate tag)?

  • 2008.Jan.10 @ 18:50

    Hello,

    I love this plugin, works great. I’ve got two questions.

    1) I’m trying to start using an off-line blog editor on my Mac. No editors that I’ve found so far allow you to set a post as a Minipost. They only allow you to set tags and categories. Is it possible for all posts of a certain category/tag be set to a minipost automatically?

    2) Is there a way to put a “next” “back” at the bottom of the miniposts displayed on the main page so people can scroll through them? Or a link to all the miniposts?

    Thanks again

    Devon Whittle

  • 2008.Jan.13 @ 13:48

    Great plugin, any chance of separating the published part of the mini post by the pagebreak insert? That way we can make longer posts and still keep the minipost section short.

    Thanks, Richard

  • 2008.Jan.13 @ 16:09

    @Devon:
    1. I don’t think that an off-line blog editor will be able to modify the post meta-data that the plugin uses to distinguish between normal posts and miniposts.
    2. Yes, but you’d have to to write some PHP.

    @Richard:
    Use the <!–more–> tag, or see the section named “Teaser” above.

    @Dan:
    I don’t believe that’s possible, without hacking your theme.

  • 2008.Jan.14 @ 07:02

    Thanks for the comment about using Yep, I do this, but I get this error when I click the ‘more…’ link in the minipost:
    http://mydomain.com/archives/%permalink
    that leads to

    Error 404 – Not Found

    Sorry, The page cannot be found…

    Any ideas, Thanks :-)

  • 2008.Jan.18 @ 17:13

    Hey e,

    Nice plugin! I find it amazing that people like yourself do this for free to benefit others.

    JP :)

  • 2008.Jan.21 @ 20:24

    Hi,
    Great plugin, but I’m having one issue. I check the box that is supposed to prevent mini posts from syndicating to RSS, but they’re still showing up. I’m using Wordpress 2.3, and checking the feed in NetNewsWire.

    Can you help please?

    Thanks.

  • 2008.Jan.22 @ 03:52

    thanks for your quick response e, how do I display the archive of all miniposts? is it possible to browse them like browsing an archive of a category?

  • 2008.Jan.25 @ 17:46

    Hi! Just started using MiniPosts2 on Wordpress 2.3.2 and it’s working great, except that in the Mini Post Manager window my blog posts are appearing multiple times and trying to check one of them as a minipost doesn’t work.

  • 2008.Jan.26 @ 13:36

    Not sure if anyone else see’s this, but using WP 2.3.2, plugin activated, but cannot see the control panel which is shown above. I see the link to it, but it takes me to the blog page not the control panel to make changes.
    I have other plugins which require a file to be dropped into the Admin section, but did not see that here.
    Suggestions welcome!
    Kaz

  • 2008.Jan.27 @ 12:40

    Hi,

    Very nice plugin but still have a little bug, post are showing in rss even filter is on.

    Kev :D

  • 2008.Feb.06 @ 19:07

    good plugin!

  • 2008.Feb.11 @ 15:13

    When I go to Options > Miniposts I get a 404 message.

  • 2008.Feb.20 @ 14:48

    Hee you guys,

    Perfect plugin! Thanks!
    But… I have a little problem. The space between the title en my minipost is way to big. Unfortunately, I can’t fix it. What do I have to add to the code to increase the space? Take a look at http://log.fanmeel.nl (at the rightside).

    Thanks!
    Fanmeel

  • 2008.Feb.21 @ 07:40

    Well, actualy you have to remove the that is just after and after that tweak the CSS a little.

  • 2008.Feb.21 @ 07:42

    Well, actualy you have to remove the ‘br’ tag that is just after the ‘h4′ tag from the template of MiniPosts. After that you can tweak the CSS a little.

  • 2008.Feb.22 @ 08:10

    Tweak the CSS? Can you give an example? The space between my title and text is too big. How do I tweak the CSS to fix it?
    I’m sorry. I’m a n00b!

  • 2008.Feb.22 @ 11:24

    Well, like I said, first try to remove the ‘br’ from after the miniposts’ titles. You can do that from the options page of the plugin. If that isn’t enough, we’ll go into css.

  • 2008.Feb.22 @ 16:52

    I removed the ‘br’, so the space is smaller. But not small enough! ;-)
    What do I have to add to my css to get the space smaller?

  • 2008.Feb.23 @ 10:18

    Try adding this line to your css file:

    h4.liinternal {padding: 10px 0}

  • 2008.Feb.26 @ 07:45

    Mmmm… Better, but not enough! The space between the posts is smaller, but not the space between the title of the post and the post itself. How can ik decrease this space?

    Thanks in advance!

  • 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.