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.

371 Responses to “MiniPosts”

  1. Pingback from WordPress: 20 answers – op111.net
  • Pingback from » Blog’s up…..at last!!! at Abhinandh – News, views, reviews and ofcourse Rants!
  • 2008.Oct.30 @ 12:26

    Hey, great plugin. I still got a slight problem with it. I dont want Miniposts to show on the “Recent Article” Widget in my sidebar. Now, they dont show on the frontpage when i activate “Filter mini posts from the Loop”, but when i click on an Articles More Tag it suddenly appears in the Recent Posts list.

    Is there a way to disable that? I dont want to show my Miniposts in the Recent Articles at all.

  • 2008.Nov.02 @ 20:42

    This is definitely a great plugin, thanks for putting this together.

    The one thing I would request for the next release is to allow the addition of multiple versions of this to be added to sidebars. For example, I’d like to use this on my left and right sidebar, with different content in each.

    Thanks!

  • Pingback from WP-Plugins im KlonBlog | KlonBlog
  • Pingback from WP-Plugins im KlonBlog | KlonBlog
  • 2008.Nov.19 @ 15:18

    Hi, I’ve got the same issues as Kenneth on this new theme: http://blog.sachin-db.com. I’ve test run the whole thing on a new install of wordpress 2.5+ and had no problem at all. When I released the theme, all the posts from February to November were thrown out of the Loop. It seems to be coming from 2 things: old timer blogs with a lot of posts + the exclude miniposts from the Loop option. When the option is deactivated the whole thing gets in place. The only workaround I found is to edit the post and save it again and then it just gets right but its quite long, especially when you have over 300 posts. Any body has a database magic solution for this?
    Cheers and THANKS for this great plugin!
    Sachin

  • Pingback from Açıklamalı 400 Wordpress Eklentisi
  • Pingback from Blog | Casasegafredo » Blog Archive » Tuoni e fulmini
  • Pingback from Adding Smilies to your Wordpress Plugins « Naatan.com – Opensource Web Developer
  • 2008.Dec.04 @ 08:47

    im using WP 2.6.3 , when i try to admin this great plugin it says nothing found :S, error 404 :S please help mee

  • 2008.Dec.04 @ 23:32

    RE @ nisti2 : I think u Create a folder in Plugins and stay the miniposts.php in it …. i had same problem and when i move the file in plugins folder the problem resolved .

  • Pingback from زندگي سگي » اولین کوته نوشت من
  • Pingback from زندگي سگي » نخست کوته نوشتمان
  • Pingback from Pie Palace » Blog Archive » Miniposts 0.6.7 (Boss Bass)
  • 2008.Dec.16 @ 16:01

    With the newwest version 0.6.7 for wp2.7 I get the error,
    “Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/.pike/lanooz/lanooz.net/wp-content/plugins/miniposts2.php on line 429″
    before every mini-post.
    Now I will come back to the 0.6.6 version which is working fine with wp2.7

  • 2008.Dec.19 @ 12:54

    Great Plugin! I’m having an issue on my WP 2.7 install though. Once I activate the plugin (v. 0.6.7) I start getting duplicates of all my posts showing up on the front page. Anyone else have this problem? Thanks!

  • 2008.Dec.21 @ 07:42

    Found another problem in 0.6.8. I can’t save a post as a minipost. Everytime I tick the post as a mini-, after saving the option is unticked.
    And again I came back to the 0.6.6 version, which works ok.

  • 2008.Dec.27 @ 19:12

    hi. Thanks for plugin

    perfect.

    Regards

  • 2008.Dec.29 @ 08:19

    I’ve upgraded to 0.6.9 on WP 2.6. The Minipost checkbox on my “Write a Post” page has disappeared. How do I create new Miniposts?

  • 2008.Dec.30 @ 17:35

    Now, 0.6.9 works really cool.
    And I have a kinda feature request: is that possible to put a Minipost checkbox in the Quick Post box on dashboard?

  • 2009.Jan.01 @ 08:45

    Thanks for this wonderful plugin. :)

    I was wondering if it is possible to do the comments link like the normal post. For example,

    when there are 0 comments, it will show “Leave a reply” or something instead? :)

    Thanks again!

  • 2009.Jan.03 @ 01:18

    Is there a way to make a mini post shows random post? Great plugin… works like a charm.. if only I can make it shows randomly, it will be even greater.. he.he.he.

  • 2009.Jan.03 @ 04:06

    Just what I was looking for. Great plugin.

  • 2009.Jan.03 @ 18:07

    Great plugin!!

    Will be wonderful have the miniposts checkbox in the press this window!! :D

    Bye!

  • Pingback from coolest plugin 10 | For The Love Of WordPress
  • 2009.Jan.12 @ 03:15

    Hi, great plugin!
    :D

    what’s the code for putting it somewhere else? I’m using a restrictive theme and can’t move the widget freely, so I’d greatly appreciate the “php echo something” code to put it manually in the sidebar.

    thx!
    :D

  • 2009.Jan.12 @ 13:02

    What role is required for the minipost checkbox to work? I have authors who get the box, and can check it, but when they click Update, the checkbox is cleared automatically. I (the admin) have to check the minipost box myself and save the post for the item to get posted to the widget.

  • Pingback from Wp-Wordpress, ma grosse liste de 59 plugins Wordpress en place !
  • 2009.Jan.19 @ 16:54

    Though you would like to know that your newly updated minipost 0.6.13, which is a great plug-in is incompatible with Max Banner Ads plug-in – at least on our two column layout.
    Everything was working fine till we did the update to the new version. We are using word press 2.7

  • Pingback from Miniposts | randzig
  • 2009.Feb.09 @ 16:40

    Hi, how can I setup special category for miniposts? I can not find where to assign special category only for Miniposts… Thank you for your help…

  • 2009.Feb.11 @ 06:30

    This is an awesome plugin, thanks for sharing it.
    There’s some garbage on line 403:
    * an = after <?
    * no semicolon after __()
    * the Miniposts domain is written with double quotation __(‘Mark this as a minipost’, “Miniposts”) so since it’s inside another double quotation it displays some garbage on QuickPress panel, it should be ‘Miniposts’ with single quotations.
    Thanks again, bye.

  • 2009.Feb.12 @ 17:15

    I’ve read the FAQ’s and still don’t understand the code needed to be inserted. Could you provide an example of the code? Thanks

  • 2009.Feb.17 @ 16:13

    Hello,

    are Miniposts somehow filtered? When I use in them for example short tag from Cross references plugin ([cref 22], where 22 is post id) then it does not work. Thank you for your help…

  • 2009.Feb.17 @ 21:46

    This widget is perfect for what I need – Thank you. I am having a problem in the Mini-Post Options acreen though. I want to modify a few things and when I press Update Options, I get an error page – Error 400: Bad Request. I’ve tried changing permissions on files/folders that appeared suspect but no luck. I am using WP 2.7.1 Any ideas?

    Thanks again – Scott

  • 2009.Feb.18 @ 08:54

    Hi! nice plugin =) i have a problem my theme dont support widgets. What code should i put in the sidebar to make the plugin works? Thanks!

  • 2009.Feb.18 @ 10:41

    Hello
    I’m using Minipost, and the plugin AStickyPostOrderER to order the lists of the posts. Unfortunately, I’m able to order the posts for all type of pages, except for the posts which appear in the aside bar while using the Minipost plugin. Is there a way to re-order the posts which are published in the side bar minipost widget?
    Thanks a lot for your help…

  • 2009.Feb.25 @ 04:23

    Great plug-in.
    I have used Miniposts for a long time.
    I changed themes and now, the Minipost widget is gone and there is no “add” link next to it in the widget list. It shows as being used already… (if it is, I can’t see it)
    Deactivating, deleting, re-installing has no effect.
    There is info in the DB or something I need to change, but where?

    Thanks again for the cool plugin.
    Gib aka bigdadgib

  • Pingback from Links für Mittwoch, 18.03.2009 – 8 40 – Wordpresshosting
  • 2009.Mar.26 @ 07:04

    Minipost is fantastic, thank you so much for all your work.

    The plugin was inserting a stray tag into certain objects in posts (embedded youtube videos); commenting out line 274 seemed to resolve the problem. I can only parse PHP at a very basic level so I’m not sure why. If more information would be helpful let me know and I’ll provide it…I’m using WP 2.7+K2 with a custom style.

    Thanks again.

    274: if ($br) $pee = preg_replace(‘|(?<!)\s*\n|’, “\n”, $pee); // optionally make line breaks

  • 2009.Mar.26 @ 07:45

    One other follow-up question: is there any way to prevent miniposts from showing up in the ‘Latest Posts’ list in subpages or single-post pages, as well as on the main page?

  • 2009.Mar.26 @ 10:12

    I really should have waited a bit and posted this all together…I’m also getting miniposts appearing when I navigate back or forward from a single post. Is there any way to prevent this?

  • Pingback from testing mini posts plugin in sidebar « clintonkirkpatrick.com
  • 2009.Apr.01 @ 06:49

    Hi,

    I think this plug is INCREDIBLE so…..congratulations!!!

    But there’s a bit of a problem in the pagination of the site.

    Check out the link http://www.phy-nance.com/2009/03/19/tp7/ and scroll to the bottom of the page above the footer.

    In the pagination, I see

    Previous post: Test Post 6
    Next post: The Street@01-04-2009

    So, Thesis/Miniposts is reading this as a full post instead of a snippet. What I want is to skip all the posts included in Miniposts in pagination as I intend them to be snippets of data as such(news type) only. Simply put, I’m looking to do the following.

    Previous post: Test Post 6
    Next post: Test Post 8(when it comes)

    Is there anything I can do for this?Create a separate category perhaps?Is this a Miniposts restriction?

    Again….brilliant plugin!!

  • Pingback from FRT Development Lab » Funky
  • Pingback from Free Range Talk Development Laboratory » MiniPosts
  • 2009.Apr.14 @ 11:09

    Hi there!

    Is it possible to add categories so the user can tick a box to determine in which category the post will appear?

    Thanks!

  • 2009.Apr.18 @ 01:24

    Hello,

    Thanks heaps for the cool plugin. I am having just one problem. I want to turn off auto paragraph suppression as I want the tags to print out but un-ticking the check boxes seems to have no effect on the output. Am I doing something wrong or is this a bug?

    Thanks

  • 2009.Apr.30 @ 13:06

    Hey, I’ve just gotten your great plugin working on my site, and have but one issue. The same as I see posted by Eric way back at the top of the comments, and repeated by sixswitch: When I choose “hide miniposts from the loop,” then my miniposts are removed from the standard “Latest Posts” widget — but on the home page ONLY. Navigating to any other page returns miniposts to the LPs list. In my case, it makes the whole thing a bit redundant. Is there something I’m overlooking?

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