WordPress.org

Ready to get started?Download WordPress

Forums

Live Blogging
a couple of bugs methinks (3 posts)

  1. Biranit
    Member
    Posted 2 years ago #

    Hi Chris, me again :)

    I ran into a couple of issues:

    1) I think in the function live_blogging_shortcode you are missing the 'orderby' => date, bit in the WP_Query (around line 1150)

    2) For some strange and unexplained reason, liveblog entries that were saved as drafts, show up when the poll update runs... to explain:

    - I have a liveblog entry that was saved as draft. When I load the post page that has the [liveblog] code in it, only those entries that were published show up. But then, after a few seconds, when the poll runs, suddenly I get at the top that liveblog entry that was saved as draft.

    I am not sure why this happens in the live_blogging_ajax function but not in the live_blogging_shortcode function. The only difference between the two queries I could see is that live_blogging_shortcode has while ($q->have_posts()) and live_blogging_ajax has while $q->the_post(); while live_blogging_shortcode has $q->next_post();.

    For the time being I solved this by adding 'post_status' => 'publish', to the WP_Query arguments in live_blogging_ajax - but I am not sure why it needed this to begin with, since publish is supposed to be the default post_status for WP_Query.

    Thought I'd bring it up.

    Cheers,

    Bira

    http://wordpress.org/extend/plugins/live-blogging/

  2. chrisnorthwood
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Bira,

    Indeed, 'publish' is the default for 'post_status' and 'date' the default for 'orderby', I'm not sure why that wouldn't be the case on your installation... Regardless, I'll add them (no harm in being explicit!) and there'll be there in the next bugfix release

    Chris

  3. Biranit
    Member
    Posted 2 years ago #

    Cheers Chris :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic