Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPressify this!

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40884
    bogus
    Participant

    Hey all,

    after fiddling around with my base HTML i decided to move on and mount it to WP. [This](http://fb.megavillain.org/HTML/index_inline.html# “This”) is my HTML skeleton.

    In my first attempt I could not find out how to separate the fullscreen blogpost from the archive properly (had to set the shown posts per page to one but then there was only one image in the archive, too).

    Now my question is: what’s the best way to make my template a theme? My main problem is, that a full post and the archive is basically on one page. How should I compose my index.php?

    Any ideas?

    #114846
    MooseBag
    Member

    You could just make a custom page with two loops.

    For the fullscreen one this should be good:

    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID; ?>
    Stuff goes here.

    For the archive you’ll simply use the regular loop code with a small change. We don’t want the archive to show the fullscreen one do we:

    if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
    Stuff yet again.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.