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.
  • I’d like to use your minipost2 plugin but I can’t find it on Wordpress extend and there’s no download link on this page… at least I can’t find it.

  • 2009.Jun.24 @ 09:33

    After WordPress 2.8 upgrade – Am getting duplicate posts in Miniposts – seems to create an extra copy for each set of edits, extra listing in miniposts list, all using same post ID.

    Any thoughts about this? Anyone else having the same problem?

  • 2009.Jun.30 @ 14:28

    hey, thanks a lot. Wonderful plugin really. I realised the potential of it in RSS feeds, although the home page is giving me a few problems. The aside shows up properly, but since the theme is designed to show the time of post and category it belongs to, the aside looks odd. How can I remove the ‘time of post’ and ‘category’ when the kind of post is an “aside”? Thanks a lot.

  • 2009.Jul.08 @ 18:10

    Hey, this isn’t mentioned in the FAQ’s, with only a small note in the change log – and nothing in the more recent ones – on the subject of smilies I had to sort my install from an old version, and I lost the ability to have them appear on the sidebar. Does naatan’s code work with this? If so I’ll go apply it, although this will break with every update :) (shame it can’t be added as an optional part I guess :) ).

    If there is an easier way, I’d love to know, thanks!

  • 2009.Jul.13 @ 18:09

    Great plugin! I saw in the settings file that an 0.6.10 release is available (or perhaps will be). Can I get that release? It has the quick post minipost checkbox. Thanks again!

  • Pingback from Wordpress Eklenti Pack 1 | TamBlog.Com | Google Fan Blog
  • 2009.Aug.18 @ 16:32

    Hello!
    Is there a way to display the author of the minipost? I have a blog with 2 authors, and it would be nice to be able to identify who wrote each mini post…
    Thanks!

  • 2009.Sep.14 @ 09:45

    i have used MiniPosts for years and it is a really awesome plugin. but it totally conflicts with any kind of plugin or hack that disables wpautop. the only way to make everything get on happy again is to dive into the miniposts.php and comment out all of the $pee function (approximately at line 256 – 282 and 285 – 288). its probably not worth fixing, but i hope you’ll leave a note in the readme.txt for others in the future.

  • Pingback from
  • 2009.Sep.18 @ 05:02

    Hi,

    This is a great plugin, exactly what I was looking for!

    However would you please tell me how I can put the codes in the sidebar without using the widgets?
    I have a tabbed sidebar in my sidebar and I would like to place the minipost in that, so the php code would be fine… I tried the codes as mentioned above however that didn’t help me out!

    Thanks a lot in advance!

  • 2009.Sep.18 @ 05:05

    Sorry, never mind! It’s working fine with placing after the API! ;)

  • Pingback from world press eklentiler, eklenti, wp , Teknoloji ve İnternet , TURGUTLUWEB
  • Pingback from Açıklamalı 200 Adet Wordpress Eklenti Arşivi 2 | Akgün-Web Ailesi
  • Pingback from BioTecK.NET » New Site Feature: Miniposts! | Log Into My World |
  • 2009.Oct.23 @ 08:48

    The question is, should we already be writing new posts about those subquestions and continuing discussion of them in properly separated threads? ,

  • 2009.Oct.26 @ 14:26

    This plugin is partially broken by the 2.8 update to Wordpress. The settings page no longer works. Attempts to modify result in the message “You do not have sufficient permissions to access this page.” This update broke a lot of plugins in the same way. I hope the author fixes this soon. This is a great plugin.

    Cheers, Peter.

  • 2009.Oct.26 @ 19:21

    It turns out that the plugin broke with 2.8.1. in July which “tightens security for plugin administration pages.” The release notes mention something about “explicit permission checks” being required. I hope this can be fixed.

    Cheers, Peter.

  • 2009.Nov.01 @ 22:05

    Stupid breaking changes. I’ll see if I can get a fix out for 2.8.1+.

  • 2009.Nov.08 @ 22:25

    I haven’t been able to reproduce the “You do not have sufficient permissions to access this page” problem. I poked around and eventually found http://wordpress.org/support/topic/288439#post-1143439, which makes a number of changes to a plugin that makes it use the ‘admin_menu’ hook to register the admin page – which Miniposts 2 (0.6.13) already does. I’ve been able to MP2 0.6.13 on a blog upgraded from WP 2.7.x to 2.8.5, and on a freshly installed WP 2.8.5 instance.

    All I can suggest is poking around miniposts.php, line 321. That registers the config page. The string “switch_themes” is the required capability the user must have before they are allowed to save the MP config. Try changing that to one of the other values on http://codex.wordpress.org/Roles_and_Capabilities. I don’t know if it’s possible to muck around with capabilities on a blog, but perhaps you changed something?

    Sorry I can’t be of more help. If you can provide me with a set of instructions that gets a new blog into the state you describe, I should be able to fix it.

  • 2009.Nov.18 @ 10:53

    I just followed the link to download the latest verstion (0.6.8), but on the WordPress Plugin Directory, I see version 0.6.13 only. Where can I get 0.6.8?

    Thanks!

  • 2009.Nov.21 @ 12:41

    Since upgrading to WP 2.8.6 and upgrading Miniposts to the 0.6.13, all of my minis are showing up on my homepage, despite clicking the check box to exclude them in the options page. Also, when trying update the options page I get the following error message: “500 – Internal server error.
    There is a problem with the resource you are looking for, and it cannot be displayed.”

    Any help here?

  • 2009.Nov.21 @ 22:18

    Hi Bret,

    I’ve just upgraded to 2.8.6 and am running MP 0.6.13. I’m not having any problems. If you can provide any information that would allow me to reproduce the problem on a test machine, I’ll see what I can do.

  • 2009.Nov.21 @ 23:44

    Thanks. MP were working fine until I upgraded. My main problem is that I want to exclude my MPs from my home page but still have them on my feeds. The check boxes for both are readily on the options page, however, I can check the box or uncheck the box, hit the update button and I get the internal server error. I have deleted, and re-downloaded and uploaded twice and still can’t get it to work. All of my MP start showing up on my home page. Now, I have created a category for MiniPosts and have my blog template exclude them from the home page. It is a pain, but the only work around I have found.

    Thanks for any help.

  • 2009.Nov.29 @ 20:37

    I think I’ve tracked down the source of the “You do not have sufficient permissions to access this page” problem. I’ve modified my Time Release plugin, so that it shouldn’t have the problem. Could you try installing that and setting the options? You should be able to save the options without getting an error.

    Once I know that the fix works, I’ll add the fix to Miniposts.

  • 2009.Dec.06 @ 21:32

    Thanks to folks trying out Time Release, I’ve been able to put together Miniposts 0.6.14. It should fix the permissions problem.

  • 2009.Dec.28 @ 13:09

    Hello. Is this wonderful plugin compatible with Wordpress 2.9?

  • 2010.Jan.04 @ 14:06

    Hi,

    this plugin works fine!

    Its possible to implement in function get_mini_posts the reason if the query found non miniposts – so I can write “we have no News”…

    eg the return of get_mini_posts is 0 (or 1 if we have Posts) or we have a text from the admin-menu…

    best nomos

  • 2010.Jan.06 @ 13:14

    That’s great. Thank you.

  • Pingback from Miniposts Plugin in Frugal Theme | Red Sandbox
  • Pingback from Time Release Plugin from PiePalace.ca
  • 2010.Feb.13 @ 12:05

    This is working beautifully for me. However I would like to put the posts in reverse order so I see the oldest first. Is it possible to do that?

    Many thanks.

  • 2010.Feb.14 @ 08:43

    Thanks for this, this is exactly what I’ve been looking for, but Is there any way to display the miniposts in my sidebar without using the widgets. I put the code in or the api as mentioned, but not really sure how to use it, do I need to put something before and after the code?.. what’s the exact code I need to put in the sidebar to display the miniposts without widgets?

    Thanks

    Martin

  • Pingback from Terminando de acomodar el blog | Mi Caja de Locuras
  • 2010.Mar.01 @ 07:05

    Hi! Is there a way to filter out the miniposts from the archive when using wp_get_archives('type=monthly')?

    Thanks, Morris

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