Forums | Separating comic posts from news posts

You must be logged in to post Login Register

Search Forums:


 






Separating comic posts from news posts

New Issue
UserPost

8:18 pm
November 8, 2010


arkholt

Buena Vista, VA

Member

posts 7

So, I got impatient and wanted to switch to stripShow from Webcomic immediately, mainly because I discovered a couple of very useful plugins for converting custom post types to normal posts. The only thing I need to do now is upload the comics and associate them with the posts. It was all very simple, actually.

However, I have a problem. I want to use Thematic (or perhaps another theme framework), but I want to be able to use the ability that Sandbox has of separating the comic posts from the news posts, so that the news posts remain below, but the comic blog post changes as you navigate through the comics.

I didn't see anything about that in the documentation, and I looked at the Sandbox theme to try to get an idea, but my PHP knowledge is extremely rudimentary, so I'm still baffled. Any assistance would be highly appreciated. :)

9:48 pm
November 8, 2010


Brad

Admin

posts 233

OK, I see what your question is — even on the archive pages, you want the blog posts to show up below. This is tricky. Like most themes, Thematic separates the index page (index.php) from single-post pages (single.php) which show things like comments, but don't show excerpts of the blog posts. To be honest, I'm not sure how you'd make that work — if you did, it would make every blog post (as well as every comic post) look like that, with just excerpts of the most recent blog posts, instead of the full text of the one you want to read.


stripShow 3, with custom post types, should alleviate this problem to an extent. Sorry, I just can't think of a way to do what you're talking about. Anyone have any ideas?

10:13 pm
November 8, 2010


Brad

Admin

posts 233

OK, I've figured out how to do it. Put the following code in your child theme's functions.php file:


add_action('template_redirect','stripshow_add_blog');
function stripshow_add_blog() {
    if (is_single() && is_comic() ) {
        query_posts('');
        include(TEMPLATEPATH . '/index.php');
        exit;
        }
    }    

Now your comic archive pages should be the same as the index. What this means is that no comments on the comic posts will be possible, and it won't show the rant (post text associated with the comic).

6:23 am
November 9, 2010


arkholt

Buena Vista, VA

Member

posts 7

Hmm… First of all, I added that code and nothing happened, at least not what I expected. This, along with your mentioning of the archive page (which I'm not worried about at all at this point), leads me to believe that I didn't explain myself properly.

In Sandbox, on the index page, the comic appears below the header and navigation, in its little box. Below the comic is the post associated with that comic. None of the other comic posts appear. Below that, it has a heading that says "Blog," and a large separator, and then all of the non-comic posts appear. I would like to be able to do that in Thematic, or any other theme or framework for that matter.

If this is just more clearly explaining what you already thought I meant, then feel free to disregard it :) . Either way, the code you posted didn't seem to have any effect… And anyway, if you can't figure it out, it's not extremely important. I never post many non-comic posts anyway. :)

7:25 am
November 9, 2010


Brad

Admin

posts 233

I'm not sure why the code didn't have any effect. It should be placed in your child theme's functions.php file, and from there it should work.

But yeah, I didn't really understand what you were looking for. The best thing I can think of to do what you're wanting — making Thematic's index page look more like stripShow Sandbox's, is to use the Autocomic Sidebar, and add the comic rant and navigation bars there as widgets.



  • Donate

    While I don't maintain stripShow for a living, I wouldn't say no to a little donation, if you think the plugin is worth it...

  • Advertisements