steveforgues
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Themes and Templates
In reply to: New to PHP and I need helpI figured it out.
<?php /* Template Name: Homepage */ ?> <?php get_header(); ?> <div id="content"> <?php $my_query = new WP_Query('cat=12&posts_per_page=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?> <!-- Looping Code --> <div class="post" id="post-<?php the_ID(); ?>"> <p align="center"><strong>Quote of the Day:</strong><br /><em><?php the_content(); ?></em></p> </div> <?php endwhile; ?> <!-- Do other Loop --> <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?> <!-- Looping Code --> <div class="post" id="post-<?php the_ID(); ?>"> <h1 class="title">Welcome to Above Dirt</h1> <div class="entry"> <?php the_content(); ?> </div> </div> <?php endwhile; ?> <?php $my_query = new WP_Query('cat=-12&posts_per_page=1'); while ($my_query->have_posts()) : $my_query->the_post(); ?> <!-- Looping Code --> <div class="post" id="post"<?php the_ID(); ?>"> <h2 id="post-<?php the_ID(); ?>"><em>Latest Post:</em><br /><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <p class="byline"> <span class="author vcard">by <?php the_author(); ?></span> on <abbr class="published" title="<?php the_time(__('l, F jS, Y, g:i a', 'example')); ?>"><?php the_time(__('F j, Y', 'example')); ?></abbr> </p> <div class="entry"> <?php the_excerpt(); ?> <p class="links"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="more">Read full article</a> </p> </div> </div> <?php endwhile; endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Plugins
In reply to: [Plugin: Fast and Secure Contact Form] How to make the form smallerI really like how simple to is, but I would like to have it formatted a little different if possible. I would like to have the label and the text field on the same line, instead of separate lines. Is this possible, and if so, how do I do it?
Viewing 2 replies - 1 through 2 (of 2 total)