dlevy1988
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Fixing WordPress
In reply to: Static Page w/ latest postThis does not seem to work for get_posts()
See below
<?php global $more; // set $more to 0 in order to only get the first part of the post $more = 0; $lastposts = get_posts('numberposts=2'); foreach($lastposts as $post): setup_postdata($post); ?> <div id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_time('F j, Y') ?> - <?php the_title(); ?></a></h2><!-- by <?php the_author() ?> --> <?php the_content(); ?> </div> <?php endforeach; ?>Forum: Fixing WordPress
In reply to: Static Page w/ latest postForum: Fixing WordPress
In reply to: Static Page w/ latest postWhat do you mean not working?
Forum: Fixing WordPress
In reply to: Static Page w/ latest postOn the_content() page it says
The <!–more–> quicktag will not operate and is ignored if there is only one post being displayed.
Is there a workaround for this?
Thanks,
DanielForum: Fixing WordPress
In reply to: Static Page w/ latest postI think I figured it out here: http://codex.wordpress.org/Template_Tags/get_posts
Forum: Fixing WordPress
In reply to: Static Page w/ latest postThis helps a lot, but I am interested in actually displaying the post rather than just the title and a link. Do you happen to know how to do this?
Thanks so much,
Daniel
Viewing 6 replies - 1 through 6 (of 6 total)