diff --git a/functions.php b/functions.php index ca6452a..d6a2f95 100644 --- a/functions.php +++ b/functions.php @@ -146,11 +146,12 @@ function RT($which, $restrictions = null, $override_post = null) { } function M($override_post = null) { - global $post; + global $post, $__attachments, $__ordering; $post_to_use = !is_null($override_post) ? $override_post : $post; $comic_post = new ComicPressComicPost($post_to_use); - return $comic_post->get_attachments(); + $__attachments = $comic_post->get_attachments(); + $__ordering = $comic_post->normalize_ordering(); } /** diff --git a/single.php b/single.php index 80b62d9..dea4ef6 100644 --- a/single.php +++ b/single.php @@ -14,6 +14,9 @@ foreach (M() as $image) { echo $image->embed(); + echo $image->embed('comic'); + echo $image->embed('rss'); + echo $image->embed('archive'); } RT('next'); the_title(); echo '
';