outrix
Forum Replies Created
Viewing 8 replies - 1 through 8 (of 8 total)
-
Forum: Fixing WordPress
In reply to: List WordPress Categories with Cat Descriptions<ul> <?php $categories= get_categories(); foreach ($categories as $cat) { echo '<li>'.'<a href="'.get_category_link($cat->cat_ID).'">'.$cat->description.'</a>'.'</li>'; } ?> </ul>Forum: Fixing WordPress
In reply to: Showing just one category WITHOUT using the cat-IDtry this code:
<?php query_posts('cat=13'); ?> <?php while (have_posts()) : the_post(); ?> <h3 id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> </h3> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>Forum: Installing WordPress
In reply to: Custom fields in blog entriesoo, sorry..
it must be <?php echo get_post_meta(10,’Architect’,true) ?>Forum: Fixing WordPress
In reply to: Displaying Images Based On Datetry this code:
<img src="<?php echo(get_bloginfo('url').'/comics/'.date('Y-m-d')'); ?>.gif">Forum: Fixing WordPress
In reply to: RSS only showing one post and only the title! T_Tyour feed are not validated
http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fdarkshadowmx.net%2F%3Ffeed%3Drss2author name in feed is strange: <ADMINNICENAME>
Forum: Installing WordPress
In reply to: Custom fields in blog entries(3)
<?php get_post_meta(10,'Architect',true); ?>Forum: Fixing WordPress
In reply to: Redirect to main pageopen 404.php file at your theme and replace code by the following:
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: ".get_bloginfo('url')); exit(); ?>Forum: Fixing WordPress
In reply to: Category PicturesTry this code
<?php /* If this is a category archive */ if (is_category()) { ?> Archive for the category <?php single_cat_title(); ?> <?php $cat = intval( get_query_var('cat') ); if ( !empty($cat) && !(strtoupper($cat) == 'ALL') ) {?> <img src="http://mydomain]/images/projects-icon-big-' . <?php echo $cat; ?> . '.gif" border="0" hspace="2" vspace="2" alt="' . <?php single_cat_title(); ?>. '" /> <?php } ?>
Viewing 8 replies - 1 through 8 (of 8 total)