This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var locations = {}; | |
// blues // you'll to need to know the id of each object | |
locations["-JNL9wFJ1utz-benCwRR"] = {left:1715,top:665}; | |
locations["-JNL9AedkClTVq5shQW6"] = {left:1802,top:665}; | |
locations["-JNL99iugvAJkfivJtXX"] = {left:1890,top:665}; | |
locations["-JNL9AIuUfnYkIR5Cr2v"] = {left:1977,top:665}; | |
locations["-JNL98m8z0S7ukGPJx1e"] = {left:2065,top:665}; | |
locations["-JNL97z0KJ-p67PQ_nUy"] = {left:2152,top:665}; | |
locations["-JNL94ZnHe0pAj1OaKUq"] = {left:2240,top:665}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reorder_orderPosts($orderBy) { | |
global $wpdb, $pagenow, $wp_query; | |
$excludedPostTypes = array('attachment', 'revision', 'nav_menu_item'); | |
if (!in_array($wp_query->query['post_type'],$excludedPostTypes)) { | |
if ($pagenow == 'edit.php') | |
$orderBy = "{$wpdb->posts}.menu_order ASC, post_date DESC"; | |
} | |
return $orderBy; | |
} |