mgsisk / inkblot

Inkblot is an elegant, fully responsive, highly customizable Webcomic-ready WordPress theme.
http://wordpress.org/themes/inkblot
45 stars 11 forks source link

Link webcomic images to the next/previous webcomic #10

Closed gfcmedia closed 12 years ago

gfcmedia commented 12 years ago

I'd like to wrap my comic image in a link to the next comic. I found another site using Webcomic which could do this, so I politely asked what they did to set that up.

The other site is running WordPress 3.3.2 with Webcomic/Inkblot 3. They say there is a "Link webcomic images to the next/previous webcomic" under Appearance | Layout | Miscellanea.

I'm using WordPress 3.4.2 with Webcomic/Inkblot 4. I do not see this option under Appearance | Customize | Miscellanea. Has this functionality been removed for some reason?

I tried adapting the syntax from the other site...

the_webcomic_object( 'full', $inkblot->option( 'single_webcomic_link' ) );

...into my webcomic.php but it didn't work. I searched all my Inkblot files for the string "single_webcomic_link" but nothing was returned. I also read through https://github.com/mgsisk/webcomic/wiki/Template-Tags-and-Shortcodes and my functions.php to see if I could spot something which might do this, but nothing caught my eye.

Is there a way to do this which I've simply overlooked? Please let me know what you suggest.

mgsisk commented 12 years ago

Just an oversight on my part; I'll see about adding it. In the meantime the tag you're looking for is the_webcomic, which handles Webcomic attachment display and has an optional parameter to link the attachments to a webcomic post. You can find the_webcomic on line 21 of Inkblot's /inkblot/webcomic/webcomic.php file:

    <?php the_webcomic( 'full' ); ?>

Changing it to this:

    <?php the_webcomic( 'full', 'next' ); ?>

will link webcomic images to the next webcomic.

gfcmedia commented 12 years ago

Thank you! :)