permalink list (archive) (3 posts)

  1. philgreen
    Posted 6 years ago #

    I'm trying to find a list of all posts on my blog, with author, date, title and url included.

    I'm at work trying to figure this out. My boss is trying to get a list of all of the permalinks of posts on our company's blog so we an do SEO analysis on them.

    I exported wp_posts and cleaned it up, removing all but those 4 fields, but it just shows the unpretty permalink "?p=664" for example, which isn't the way that google's SEO data is listed, they use "blogname.com/date/title-of-the-post". The post title and date are in the wp_posts, so I guess I could figure out some macro or regexp to add the columns together and replace all the spaces with dashes, but there must be a simpler way.

  2. philgreen
    Posted 6 years ago #

    I figure I should make an archive.php and use this line:

    <?php wp_get_archives('type=postbypost&limit=200&format=custom&after='); ?>

    But I want to include date, author and post title in there also, not just post title and link to post.

  3. philgreen
    Posted 6 years ago #

    I figued it out and am posting here in case someone else has the same problem. I did like this:

    <?php query_posts('showposts=10'); ?>
    <?php $posts = get_posts('numberposts=1200');
    foreach ($posts as $post) : start_wp(); ?>

    <td><?php the_time('m/j/y') ?></td>
    <td><?php the_title(); ?></td>
    <td>"><?php the_permalink() ?></td>
    <td><?php the_author() ?></td>
    <?php endforeach; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.