WordPress.org

Ready to get started?Download WordPress

Forums

Latest Activity (7 posts)

  1. jimmyneutron
    Member
    Posted 9 years ago #

    Is there a way to pull the 'Latest Activity' information from the Admin Dashboard into the sidebar of the blog for everyone to see?

  2. Cypher
    Member
    Posted 9 years ago #

    Sure..you should be able to just copy over the code from the index.php file in /wp-admin over to your sidebar.

    Regards

  3. moodsoft
    Member
    Posted 9 years ago #

    Is it possible to put Latest Activity on a seperate page that has nothing to do with wordpress?

  4. Kafkaesqui

    Posted 9 years ago #

    moodsoft, see this for the basics on accessing WordPress in a non-WP document:

    http://wordpress.org/support/topic/24027#post-180517

  5. royng
    Member
    Posted 9 years ago #

    i am also trying to do it and i manage to get it to work but how do i put in the _permalink()

    I tried this but can't work

    <h3><?php _e('Posts'); ?> <?php _e('More posts...'); ?>&raquo;</h3>
    <?php
    foreach ($recentposts as $post) {
    if ($post->post_title == '')
    $post->post_title = sprintf(__('Post #%s'), $post->ID);
    echo "<li><a href='<?php the_permalink(); ?>'>";
    the_title();
    echo '</a></li>';
    }
    ?>

  6. royng
    Member
    Posted 9 years ago #

    ok i got it to work by using the loop function

  7. robertsonrw
    Member
    Posted 8 years ago #

    royng,

    could you post your fix? I am having simialr trouble. When I post the code, I get an error message.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.