Conversation
supportAny chance you can make an option in the plugin to add a default category order number (e.g. 9999) every time a post is created/updated? So all posts show when using the 'orderby' => 'meta_val_num' . Something with the same effect as this: function addDefaultCatOrder($post_id) { $post_categories = wp_get_post_categories($post_id); foreach($post_categories as $catID): add_post_meta($post_id, 'sort_'.$catID, 9999, true); endforeach; } add_action('save_post', 'addDefaultCatOrder'); Thanks! https://wordpress.org/plugins/category-custom-post-order/
No comments were stored for this source.