I developed the “Organize Series WordPress plugin” to help me manage and make it easier for readers to find various articles I’ve written as part of a series. In this series of articles I am writing about how to use this plugin effectively and in the process I’ll be working through various features of the plugin.
- Introduction to Organize Series Usage Tips
- Series Options Page: Tokens
- Series Options Page: Automation Settings
- Series Options Page: Series Post List Template
- Series Options Page: Series Navigation Template
- Series Options Page: Series Meta Template
- Series Options Page: Series Table of Contents Template
- Series Options Page: Wrap up
- Showing off your series
- Showing off Your Series: Series List
The Series Post List Template is used to affect the presentation of all posts belonging to a series on the single page of a post belonging to a series. In other words, the series postlist box you see on this page.
By default, Organize Series inserts the contents of this template into your blog whenever a post page is displayed for a post that belongs to a series. However you can disable this by unchecking the “Display list of series on post pages” checkbox (I know, I need to change the wording – it’s misleading!).
Let’s take a look at a screenshot of the Series Post List template:
In every template you include the following three things:
- (x)html/css controlling the layout and “looks” of the box.
- Any text you want displayed.
- %token-tags% controlling the placement of series information (see “Series Options Page: Tokens” for more on tokens)
In this particular template we see that I’ve used div containers to control the layout of the postlist “box” (with css class “seriesbox” and “center”). I’ve also decided to make the list of posts (%post_title_list%) an unordered list (ul).
I also decided to not use any custom text in this box. But I could have done something like this:
which would result in this:
Next, notice the %tokens% I’ve used:
- %series_icon_linked% – If the series has an image associated with it then it will be displayed in a
divcontainer with the class “center” - %postcontent% – the location of this tag tells Organize Series that I want the Series PostList Template contents to be placed before the post content of the post.
- %post_title_list% – is a marker token that tells organize series where I want the list of posts in that series to be placed.
The %post_title_list% token is a special token because it will consider the contents of the “Series Post List Post Title Template” and the “Series Post List Current Post Title Template” when Organize Series prepares the page for display. Let’s look at these two templates:
Remember how %post_title_list% is surround by <ul> and </ul> tags? Well the Series Post List Title Template (and Series Post List Current Post Title Template) indicates how each post in the list of posts will be outputted. Since this is an unordered list then I need to make sure I use <li></li> surrounding each post title (%post_title% or %post_title_linked%). Why two templates? In case you haven’t figured it out by now – in the list of posts in the post list box I may want to style the current post being displayed differently from the others. In this particular case I decided that I would choose to display the current post as a non-linked title (%post_title% as opposed to
%post_title_linked%) and with a class of “serieslist-li-current” (as opposed to “serieslist-li”). Notice anything else that’s different for the current post being displayed?
This gives the user incredible control over how the “Table of Contents” for posts in a series is displayed on your blog.
One final note:
The functions (“template tags”) that call these templates are:
wp_postlist_display() -> calls the Series Post List Template and replaces the tokens with series related information.
get_series_posts() -> calls the contents of the “Series Post List Post Title Template” and “Series Post List Current Post Title Template” and replaces the %tokens% in them. It does have arguments that can be passed to it and if you must get into it now it is documented in the series-template-tags.php file.






#1 by Hunter Greene on December 3rd, 2008
Quote
Great plugin. Is there an easy way to determine if, on a single post page, the post is a member of a series & if so which one – all outside the loop? Thanks.
#2 by Darren on December 4th, 2008
Quote
Hi Hunter,
Try
<?php is_series() ?>in a conditional statement.#3 by Ramesh Menon on January 18th, 2009
Quote
Darren,
Thanks a million for your plugin. Its what I was looking for.
Best Regards
Ramesh J Menon
#4 by felix on April 29th, 2009
Quote
Hi Darren,
nice plugin, thanks for sharing.
Actually I try to put some sites in a series. It works perfelctly. The only thing I couldn’t figure out: I want to make a post, containing a whole TOC (ordered by series-number). Is there a code that I can put directly in a post (html section) ??
Thanks for the plugin
Felix (Germany)
#5 by Darren on April 29th, 2009
Quote
Hi Felix,
Glad you like the plugin. Quick answer: at the moment I can’t think of any code that you can use for what you want. However, you may want to check the series-template-tags.php file to see if there is anything you can use (and/or modify – depending on your coding ability) to do what you want.
If I find the time (not likely) – I’ll see if I can come up with a solution for you, in the meantime that’s the best I can do for now. You might want to post your request in the Organize Series Support Forums as well. Lately there’s been some other users of Organize Series helping answer questions posted there (awesome!) – and one of those users may know of an answer to your request.
#6 by felix on April 29th, 2009
Quote
Hi Darren,
thanks for your quick reply. I’ll have a look.
Felix
#7 by Felix on May 3rd, 2009
Quote
Hi Darren,
I could get it to work as a TOC on a single post.
HowTo for all users:
I used the plugin php-exec and created a page with the content “”, I defined series like this (>series options, Latest series):
%post_title_list%
It works like a charm.
The only thing that doesn`t work so far is, when I set a date for a post and give it a series and a series part it won’t work, I’ll have to edit every post again, when it’s published to set a series. So the series-information will be lost during the scheduled publishing. Can you help? Thanks , Felix.
#8 by Ritesh Singh on July 25th, 2009
Quote
Thanks a lot for your plugins