[Plugin: Easy Content Templates] Small Template Ordering Bug in latest 1.1 version of plug
-
Hi-
Found a small bug in the code for the latest plug: in “ect-metabox-allothers.php” the following should be <<‘orderby’ => ‘title’>> not <<‘order_by’ => ‘title’>>
$templates_own = get_posts(array(‘author’ => get_current_user_id(), ‘numberposts’ => -1, ‘post_type’ => ‘ec-template’, ‘post_status’ => ‘publish’, ‘order_by’ => ‘title’, ‘order’ => ‘ASC’,));
$exclusions = array();
foreach($templates_own as $template_own) $exclusions[] = $template_own->ID;
$templates_public = get_posts(array(‘exclude’ => $exclusions, ‘meta_key’ => ec_templates::post_meta_key_public, ‘meta_value’ => 1, ‘numberposts’ => -1, ‘post_type’ => ‘ec-template’, ‘post_status’ => ‘publish’, ‘order_by’ => ‘post_title’, ‘order’ => ‘ASC’,));Thanks,
Jonathan
https://www.ads-software.com/extend/plugins/easy-content-templates/
- The topic ‘[Plugin: Easy Content Templates] Small Template Ordering Bug in latest 1.1 version of plug’ is closed to new replies.