go41

chi com


von Joern
Keine Kommentare

to make it short (eg: I didn't test)to show your latest post in headline, no matter which category:in header.php is the query for headline posts, this query checks for the category you choose for headlines, should be now like this:<?php //Get value from Admin Panel $cp_categories = get_categories('hide_empty=0'); $ar_headline =…


von Joern
Keine Kommentare

you know what I like to do with 404.php?It's so empty so I show my 10 latest posts in there. In 404.php you find:Ooops, I cannot find you the page you are looking for....Just under this paragraph I add wp_get_archives('type=postbypost&limit=10'); looking like this:Code:<div class="entry clearfloat">      <p>Ooops, I cannot find…


von Joern
Keine Kommentare

If you use just one single.php for all singles and you want to display something on a single view only in one category, use the condition 'in_category()', this tests if the current post is assigned to any of the specified categories.Anywhere in single.php you can add this:Code:<?php if ( in_category(…