Open blog in new window
-
I´m using your code for getting my last post onte my hempage, but I´m having a small problem.
In the end of the post it says Read more— and when I click on it the blog opens in the same page and not in a new window. Anyone knows how the get that function?
Generate a list
In the event you want to show ten posts sorted alphabetically in ascending order on your web page, you could do the following to grab the posted date, title and excerpt:
Code
<?php require('/the/path/to/your/wp-blog-header.php'); ?> <?php $posts = get_posts('numberposts=10&order=ASC&orderby=post_title'); foreach ($posts as $post) : start_wp(); ?> <?php the_date(); echo "<br />"; ?> <?php the_title(); ?> <?php the_excerpt(); ?> <?php endforeach; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Open blog in new window’ is closed to new replies.