Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • heres the easy way:
    remove:
    <p class=”linklove” id=”ll’. $no .'”>cforms contact form by delicious:days

    from the cforms.php
    done.

    I added on to funkboybilly code so that it looks similar to the category page whihc includes title link, date, tags, etc.
    In the page template paste it under the
    <h1><?php the_title(); ?></h1><br /> that is already there.

    Here is the code:

    <!-- CODE TO SHOW POSTS -->
    <?php $catname = wp_title('', false); ?>
    <?php query_posts("category_name=$catname&showposts=10"); ?>
    <?php $posts = get_posts("category_name=$catname&numberposts=3&offset=0");
    foreach ($posts as $post) : start_wp(); ?>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    
    				<div class="dateleft">
    					<p><span class="time"><?php the_time('F j, Y'); ?></span> <?php _e("by", 'studiopress'); ?> <?php the_author_posts_link(); ?> &nbsp;<?php edit_post_link(__('(Edit)', 'studiopress'), '', ''); ?> <br /> <?php _e("Filed under", 'studiopress'); ?> <?php the_category(', ') ?></p>
    				</div>
    
    				<div class="dateright">
    					<p><span class="icomment"><a rel="nofollow" href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Leave a Comment', 'studiopress'), __('1 Comment', 'studiopress'), __('% Comments', 'studiopress')); ?></a></span></p>
    				</div>
    
    			<div class="clear"></div>
    <?php the_excerpt(__('Read more', 'studiopress'));?>
    			<div class="clear"></div>
    
    			<div class="postmeta2">
    <p><span class="tags">Tags: <?php the_tags('') ?></span></p>
    			</div>
    <?php endforeach; ?>
    
    <!-- END-->

    Then remove the line of code below this:
    <?php the_excerpt(__('Read more', 'studiopress'));?> that was previously there so you dont have you content displaying twice.

Viewing 2 replies - 1 through 2 (of 2 total)