Apologies for the trouble nnesk! Hopefully I can provide some help, or at least point you in the right direction.
If the Integrate option is failing (which it did on my dev box, as you said it would) you’ll have to create some custom template files for Webcomic. To get started, disable Integrate (if t’s still on) and then make a webcomic
directory inside the Parabola theme folder (so that you have /wp-content/themes/parabola/webcomic/
). Webcomic will automatically use templates in this directory instead of the normal theme templates, allowing you to keep your Webcomic-specific templates separate from the rest of the theme.
Next, copy Parabola’s single.php
file into the newly-created webcomic
directory. The page linked above explains in a little more detail, but the gist is that when you navigate to a single-Webcomic post, Webcomic will load the /wp-content/themes/parabola/webcomic/single.php
template instead of the normal /wp-content/themes/parabola/single.php
template. This only happens with Webcomic posts; the rest of your site should continue to work as it always has.
Now, open up /wp-content/themes/parabola/webcomic/single.php
and add this…
<?php the_webcomic(); ?>
<?php first_webcomic_link(); previous_webcomic_link(); next_webcomic_link(); last_webcomic_link(); ?>
…just below line 16 (<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
). That’s the bare-minimum code you need to get both the Webcomic image and standard navigation (F/P/N/L) to show up. You may need to add some custom CSS and possibly some additional HTML elements to get everything looking the way you’d like, but this should at least get Webcomic images and navigation displaying on single-Webcomic post pages.
Next, we’ll do the webcomic “homepage” where the most-recent strip will display. There are a lot of ways you could do this, but for my example instructions here I’d recommend duplicating /parabola/templates/template-onecolumn.php
and renaming it to /parabola/templates/template-webcomic.php
. Open that up, and change the line * Template Name: One column, no sidebar
at the top to read * Template Name: Webcomic Homepage
. You’ll notice there isn’t much else in this template, which should be good for our purposes. Add this code just after line 19 (<div id="content" role="main">
):
<?php
$webcomics = new WP_Query(array(
'posts_per_page' => 1, // show one webcomic post
'post_type' => get_webcomic_collections(), // from any webcomic collection
'order' => 'DESC' // starting with the most recent
));
while ($webcomics->have_posts()) : $webcomics->the_post();
the_webcomic();
first_webcomic_link(); previous_webcomic_link(); next_webcomic_link(); last_webcomic_link();
endwhile;
?>
Again, this is the bare-minimum code you would need to get the most recent Webcomic post to display; you’ll probably need to add some more HTML structure and CSS styling to get it looking exactly how you want. Now that the template is finished, you should be able to create a new Page and select the Webcomic Homepage template to get the most recent comic displaying.
Archives can be handled a lot of ways, but – if you want a more traditional one-page comic archive sort of deal –?I would copy the single-column template again, rename it (something like Webcomic Archive, maybe), and then use one of Webcomic’s archive template tags to generate an archive for you.