hallvors
Forum Replies Created
-
I hope this thread will be useful if anyone else comes across this issue at some point 🙂
Sounds likely. I’m afraid I don’t know exactly what version(s) were running at what point.
The fix was to create a duplicate event-start-date entry for all:
insert into wp_site_postmeta (post_id, meta_key, meta_value) select post_id, ‘event-start-date’, meta_value from wp_site_postmeta where meta_key = ‘event-date’;
BTW: in the database, meta_key: event-date is used exclusively. These (maybe from an earlier plugin version?) appear as end dates in the control panel UI. I tried re-naming all to event-start-date but it did not help the events appear.
Forum: Plugins
In reply to: [Simple Discography] Fatal Error: realease dateThis plugin does not work for me in Wp 4.4.2: submitting a new discography entry lands on a white, empty page and using the short tag in a page doesn’t render any entries. It seems like the date is not saved correctly so I assume the problem is the same as this thread.
Can this be fixed? I don’t have time to debug it completely, but I’ve gotten as far as commenting out the lines inside this if block
}elseif($key==RELEASE){ $date_form=SiDi_I18N_DateTime::createFromFormat (get_option( 'date_format' ), $value); $date_form->setTime(0, 0, 0); $value=$date_form->getTimestamp(); }(two instances in SiDi_Posts.php) and it makes the white error screen go away (although now all release dates appear as 1/1 1970).
No 🙂
It needs to be “type” if you add it to your $vsel_meta_query hash as suggested – see the indented bulleted list here:
https://codex.ww.wp.xz.cn/Class_Reference/WP_Meta_Query
for valid attributes.I’ve tested – in my local install meta_type doesn’t work.
(Although it probably would work if we moved it to somewhere else in the code – to the $vsel_query_args definition)
-HallvordThat’s awesome Guido, thank you for this quick response! 🙂
It’s a bug in the plugin after all. You should add this:
'type' => 'NUMERIC'to the inner array for the meta query:
$vsel_meta_query = array( 'relation' => 'AND', array( 'key' => 'event-date', 'value' => $today, 'compare' => '>=' ) );Better do it in both vsel_shortcode.php and vsel_past_events_shortcode.php 🙂