Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter maarek

    (@maarek)

    just FYI – your code is now used in “uredni deska” 🙂

    Thread Starter maarek

    (@maarek)

    songdogtech thank you, your code works… 🙂

    would you know, please, an answer to this too:

    wanna have a sidebar with “news”. In administration, I have news divided in two categories (lets say ecru and purple). To be more friendly to the visitor I want the particular news to show up in terms – one ecru one purple, one ecru one purple…

    Again, this worked for me until it has stopped:

    <?php query_posts(‘showposts=’); ?>
    <?php while (have_posts()) : the_post(); ?>

    <?php if (in_category(‘1’)) { ?>
    <div class=”rb_1″>
    <?php the_title(); ?>
    <?php the_content() ?>
    </div>

    <?php } else if (in_category(‘4’)) { ?>
    <div class=”rb_2″>
    <?php the_title(); ?>
    <?php the_content() ?>
    </div>

    <?php } ?>

    <?php endwhile; ?>

    you might see the result here:
    http://www.obec-ruzova.cz

    (wordpress version – under testing – here:)
    http://www.obec-ruzova.cz/wordpress

    thank you a lot

    Thread Starter maarek

    (@maarek)

    the other posts are in categories of their own…

    i use this to display them:

    <?php query_posts(‘category=1,4’); ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php if (in_category(‘1’)) { ?>
    <div class=”prispevek_1″>
    <?php the_title(); ?>
    <?php the_content() ?>
    </div>

    <?php } else if (in_category(‘4’)) { ?>
    <div class=”prispevek_2″>
    <?php the_title(); ?>
    <?php the_content() ?>
    </div>

    <?php } ?>

    <?php endwhile; ?>

    but it works only with one category. these two it ignores 🙁

    Most strange is that it worked for me perfectly, until…that’s what i am not able to say – it’s stopped working without a reason

    thanks for you help

    Hi Buck…how do you publish posts at a future date? and also – have you found a way to get it all done in one step – I mean set the date both for publishing end expiration? thanks…

Viewing 4 replies - 1 through 4 (of 4 total)