jasmines
Forum Replies Created
-
Problem solved. It was a strange conflict with conditional logic of toolset plugin.
Sent.
Ehy, you are the developer… Aren’t you?
That bug is 8 years old and it was FIXED.
You should think about this little particular: your plugin is not the first handling date formatted postmeta.How much longer do we have to wait for the next release???
Please provide estimation time!You’re welcome, however:)
I fixed it the ordering bug for you!
In post-expirator.php, find
function my_expirationdate_orderby( $query ) { if( ! is_admin() ) return; $orderby = $query->get( 'orderby'); if( 'expirationdate' == $orderby ) { $query->set('meta_query',array( 'relation' => 'OR', array( 'key' => '_expiration-date', 'compare' => 'EXISTS' ), array( 'key' => '_expiration-date', 'compare' => 'NOT EXISTS', 'value' => '' ) )); $query->set('orderby','meta_value_num'); } }and replace with:
function my_expirationdate_orderby( $query ) { if( ! is_admin() ) return; $orderby = $query->get( 'orderby'); if( 'expirationdate' == $orderby ) { $query->set( 'meta_key', '_expiration-date' ); $query->set('meta_query',array( 'relation' => 'OR', array( 'key' => '_expiration-date', 'compare' => 'EXISTS' ), array( 'key' => '_expiration-date', 'compare' => 'NOT EXISTS', 'value' => '' ) )); $query->set('orderby','meta_value_num'); } }Note the addition:
$query->set( 'meta_key', '_expiration-date' );I’m using your plugin on a single site.
Sorting by “expires” column definitely doesn’t work as expected.
The records are “moving”, when I click on the sorting arrow near “Expires” field, but I can’t understand what logic is used for the obtained sequence.
So I tried to have a deeper look in the database, where everything seems ok: I found out your plugin is adding a few post_meta to expiring posts, and I saw the meta_value is a timestamp-like value, so sorting is quite obvious.
I executed the querySELECT p.ID, p.post_title, p.post_type, pm.meta_value FROM wp_postmeta as pm inner join wp_posts as p on pm.post_id = p.ID where pm.meta_key like “_expiration-date” order by pm.meta_value
Mysql is ordering the records as expected.
Really I don’t understand why the table list is behaving so strangely…
I really would like to help with further details…I deactivated the Admin Columns plugin, but I’m still having the bug.
Regarding the bulk edit bug, can you say when will it be fixed more or less? I can’t believe there aren’t other plugins to achieve the expiration on wordpress… So yours is a must have it!
Regarding the ordering bug, I’m using Admin Columns Pro by https://www.admincolumns.com/ to add sortable/filterable columns to backend list tables. It works with all kind of fields, from several plugins, except of yours…
And I can’t find out why…You understood correctly, no screenshots are needed.
The Link in the breadcrumb appear to behttps://www.mysite.com/courses/project_category/%5Btaxonomy_term%5D/
instead of
https://www.mysite.com/courses/course_category/%5Btaxonomy_term%5D/
IE11 doesn’t support the method definition shorthand syntax 495: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions
Your code needs my fix, no way.
to solve, search the following in scripts/frontend-bundle.min.js:
return{divienhancer_image_comparison,divienhancer_modal_popup,free_divienhancer_sticky,divienhancer_timeline,divienhancer_flipbox,divienhancer_ihover_function,divienhancer_interactive_background,divienhancer_bing_map_script,set_divienhancer_option_name}and replace with:
return{divienhancer_image_comparison:divienhancer_image_comparison,divienhancer_modal_popup:divienhancer_modal_popup,free_divienhancer_sticky:free_divienhancer_sticky,divienhancer_timeline:divienhancer_timeline,divienhancer_flipbox:divienhancer_flipbox,divienhancer_ihover_function:divienhancer_ihover_function,divienhancer_interactive_background:divienhancer_interactive_background,divienhancer_bing_map_script:divienhancer_bing_map_script,set_divienhancer_option_name:set_divienhancer_option_name}Forum: Plugins
In reply to: [DIVI Enhancer - DIVI Modules and Options] Not compatible with DIVI 4.0.6I see the following js error: Uncaught ReferenceError: et_pb_debounce is not defined
Forum: Plugins
In reply to: [MSTW League Manager] Endless games generationSportpress is the one to blame.
Forum: Plugins
In reply to: [MSTW League Manager] Endless games generationWe can pay your time if you want to investigate. Moreover, if we manage to make your plugin work in a MS environment, we’ll buy all your premium addons.
Feel free to contact me privately (jasmines@email.it) if interested.