[Plugin: Live Blogging] a couple of bugs methinks
-
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
- The topic ‘[Plugin: Live Blogging] a couple of bugs methinks’ is closed to new replies.