maarek
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: not getting what i need from the databasejust FYI – your code is now used in “uredni deska” 🙂
Forum: Fixing WordPress
In reply to: not getting what i need from the databasesongdogtech 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/wordpressthank you a lot
Forum: Fixing WordPress
In reply to: not getting what i need from the databasethe 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
Forum: Fixing WordPress
In reply to: Expiration date for postsHi 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…