WordPress.org

Forums

[Plugin: Display Future Posts] Linking to post (1 post)

  1. balbert
    Member
    Posted 5 years ago #

    I was able to edit the plugin to add the link, but it doesn't always work. Sometimes I get a 404 error and other times it works.

    Is it even possible to display a future post to users of the blog if they have the url?

    here is what I changed...
    DB query, added to return the guid or url

    $wpdb->get_results("SELECT ID, post_title, post_date_gmt, guid FROM $wpdb->posts WHERE post_status = 'future' AND post_date_gmt > '$fb_date_today' ORDER BY post_date ASC"))

    then...
    echo '<li><a href="'. $post->guid .'">' . $post->post_title .'</a></li>';

    I think this might be a permissions thing were wp won't show you a post that isn't "published"

    http://wordpress.org/extend/plugins/display-future-posts/

Topic Closed

This topic has been closed to new replies.

About this Topic