sclausen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Several query_posts wont work..Thanks a lot! 😉
Forum: Fixing WordPress
In reply to: Help with excluding categoryIts works now 🙂 Thank you 🙂
Forum: Fixing WordPress
In reply to: Next_post_link and Previous_post_link not workingDude! Thank you! 😀
Forum: Fixing WordPress
In reply to: Help with excluding categoryJust found out that the new code causes the next_post_link and previous_post_link to not work properly..
If i change the “
$rand_posts as $post“-part to for example, “$posts as $post” the tags work again, but then the code doesnt work.. 🙁Forum: Fixing WordPress
In reply to: Help with excluding categoryWow! that simple..
Thanks for the help, i really appreciate it! 🙂
Forum: Fixing WordPress
In reply to: Help with excluding categoryOk, now it looks like this:
<?php $args = array( 'numberposts' => 1, 'orderby' => 'recent' ); $rand_posts = get_posts( $args ); foreach( $rand_posts as $post ) : ?> <li><a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?> <div id="newestpost" class="bg50 absolute"> <h1 href="<?php the_permalink(); ?>"><?php the_title(); ?></h1> </div></a></li> <?php endforeach; ?>Now, what do i do to exclude a category?
It doesnt seem to work if i use:
<?php query_posts( '&cat=-7,-8,-9'); ?>Forum: Fixing WordPress
In reply to: Help with excluding categoryIt is actually in the header.php..
It displays the most recent post in the topbanner.
And the most recent post is then removed from the loop with:
<?php query_posts('posts_per_page=6&offset=1'); ?>Forum: Fixing WordPress
In reply to: Help with excluding categoryIt doesnt work..
The code is placed outside the loop..
Wich makes it a bit more difficult..Forum: Fixing WordPress
In reply to: Help with excluding category@esmi
I’ve tried that already, but i could’nt make it work..Perhaps you could give me an example?
Forum: Themes and Templates
In reply to: the_post_thumbnail does not show in my if else statementThis code is inside a div, my header..
I have tried it with the_post_thumbnail tag only, and it works fine, but when i try to do it like this, it just doesnt show..
As if the tags isnt there..