The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Live Blogging
a couple of bugs methinks (3 posts)

  1. Biranit
    Posted 4 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.




  2. chrisnorthwood
    Plugin Author

    Posted 4 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


  3. Biranit
    Posted 4 years ago #

    Cheers Chris :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Live Blogging
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic