From 8aed3b17273687547a4a66a35d67eef3c5b934a5 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 19 Nov 2009 20:54:57 -0500 Subject: [PATCH] doc tweaks --- docs/en_US/storyline-post-template-tags.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/en_US/storyline-post-template-tags.html b/docs/en_US/storyline-post-template-tags.html index fa60769..eb11eff 100644 --- a/docs/en_US/storyline-post-template-tags.html +++ b/docs/en_US/storyline-post-template-tags.html @@ -1,5 +1,10 @@

Storyline Post Template Tags

+

+ ComicPress Core provides a number of functions that allow you to traverse the storyline structure created from your blog's categories. + Technical details about these template tags can be found in the functions.inc file within your ComicPress Core installation. +

+

R() and RT()

@@ -11,11 +16,11 @@

 // use a post programmatically
 $previous_post = R('previous');
-echo get_the_permalink($previous_post->ID);
+echo get_permalink($previous_post);
 
 // use template tags with a post
 Protect(); // save the current Loop post
-RT('previous');
+$previous_post = RT('previous'); // RT() returns the post, too
 the_permalink();
 Restore(); // restore the saved Loop post
 
@@ -161,12 +166,12 @@ R('previous', null, $other_post);

@@ -258,4 +263,4 @@ $parent = SC('parent'); // or you can provide a category to be relative to $next_from_three = SC('next', 3); $previous_to_chapter_four = SC('previous', 'chapter-four'); - \ No newline at end of file +