The Blog Posts Macro allows you to display blog posts on a wiki page. Clicking on a title takes you to the blog post. The blog posts macro will generate output like the screenshot below:
Screenshot: The Blog Posts Macro in Confluence

On this page:
To insert the blog posts macro into a page using the Macro Browser,
|
Once you've found the blog posts macro, click 'insert' to add it to your page. |
Simply type the following into the Wiki Markup editor:
{blog-posts}
|
In the example below, we show the blog posts from a user's personal space on this Confluence site. (The person's username is ~mryall.)
What you need to type |
What you will get |
|
|---|---|---|
|
|
Parameter |
Default |
Description |
|---|---|---|
( |
None |
Filter the results by author. The macro will display only the blog posts which are written by the author(s) you specify here.
|
Content Type to Display |
entire |
Available values:
|
Restrict to these Labels |
None |
Filter the results by label. The macro will display only the blog posts which are tagged with the label(s) you specify here.
|
Restrict to these Labels |
None |
Exactly the same as |
Maximum Number of Blog Posts |
15 |
Specify the maximum number of results to be displayed. Note that the results are sorted first, and then the maximum parameter is applied. |
Maximum Number of Blog Posts |
15 |
Exactly the same as |
Reverse Sort |
false |
Use this parameter in conjunction with the |
Sort By |
creation |
Specify how the results should be sorted. To change the sort order from ascending to descending, use the |
Restrict to these spaces |
@self, i.e. the space which contains the page on which the macro is coded |
This parameter allows you to filter content by space. The macro will display only the pages which belong to the space(s) you specify here.
Special values: |
Restrict to these spaces |
|
Exactly the same as |
Time Frame |
no limit |
Specify how far back in time Confluence should look for the blog posts to be displayed.
|
The following code will display a maximum of five blog posts:
{blog-posts:max=5}
|
{blog-posts:content=excerpts}
|
{blog-posts:content=titles}
|
The following code will display all blog posts posted in the last twelve hours.
{blog-posts:time=12h}
|
The following code will display all blog posts posted in the last 2 weeks.
{blog-posts:time=2w}
|
The following code will display blog posts that contain the labels 'atlassian' or the label 'confluence' (or both):
{blog-posts:labels=atlassian,confluence}
|
The following code will display blog posts that contain the labels 'atlassian' and 'confluence' — each blog post must be tagged with both labels:
{blog-posts:labels=+atlassian,+confluence}
|
The following code will display items from the 'Marketing' space (space key is MKTG) and Joe Smith's personal space (space key is ~jsmith):
{blog-posts:spaces=MKTG,~jsmith}
|
The following code will display the latest 10 items in the 'Marketing' space (space key is MKT) with the label 'logo'. The items will be displayed as a list of titles only:
{blog-posts:max=10|labels=logo|spaces=MKT|content=titles}
|
Use the code below to sort the list of items by date last modified, with the most recent at the top:
{blog-posts:sort=modified|reverse=true}
|
Working with Macros
Working with Blog Posts Overview
Take me back to the Confluence User's Guide.