alan-tucker
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Fixing WordPress
In reply to: [How To] Get last 2 items for a categoryAh I know why 😉
Forum: Fixing WordPress
In reply to: [How To] Get last 2 items for a categoryIts kinda working but for some reason its not getting the 1st date?
<div id="latest-blog-entries"> <h2>Latest Entries From The SEO Blog</h2> <?php query_posts('category_name=blog&showposts=2'); ?> <?php while (have_posts()) : the_post(); ?> <h3><?php the_title(); ?></h3> <h4>Posted on <?php the_date(); ?></h4> <?php the_excerpt(); ?> <?php endwhile; ?> </div>Forum: Fixing WordPress
In reply to: [How To] Get last 2 items for a categoryHi kwbridge
Thanks very much, just testing it now. Did you get my email sent to your gmail 😉
Alan
Forum: Fixing WordPress
In reply to: Category list with descriptionsSeems to be working once content gets added to the categories.
Thanks for all your help.
Alan
Forum: Fixing WordPress
In reply to: Category list with descriptionsThanks kwbridge
So far I have…
$categories = get_categories(); foreach ($categories as $cat) { echo "<li><a href=\"#\">".$cat->cat_name."</a><br /><span class=\"small-text\">".$cat->category_description."</span></li>"; }How do I get all categories even if they have no posts?
Thanks
Alan
Forum: Fixing WordPress
In reply to: Category list with descriptionsOK so the following lists out the categories:
<?php wp_list_categories(”); ?>
I wan to be able to list out te category names and the description as per my previous post.
Thanks
Alan
Viewing 6 replies - 1 through 6 (of 6 total)