• 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

    https://www.ads-software.com/extend/plugins/live-blogging/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author chrisnorthwood

    (@chrisnorthwood)

    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

    Thread Starter Biranit

    (@biranit)

    Cheers Chris ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Live Blogging] a couple of bugs methinks’ is closed to new replies.