How do I get a listing of all my blog's posts' URL on wp.com
-
I found a code online to get a listing of all posts:
<?php
$args = array( ‘posts_per_page’ => 3 );
$lastposts = get_posts( $args );
foreach ( $lastposts as $post ) :
setup_postdata( $post ); ?>
<h2>“><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endforeach;
wp_reset_postdata(); ?>But how do i add a php page to my wordpress.com site?
The blog I need help with is: (visible only to logged in users)
-
You can’t use that script.
You can create a Page http://en.support.wordpress.com/pages/ and use the Archives shortcode on it. http://en.support.wordpress.com/archives-shortcode/The result will be like my page here > http://onecoolsitebloggingtips.com/sitemap/
-
-
- The topic ‘How do I get a listing of all my blog's posts' URL on wp.com’ is closed to new replies.