the support of ‘page-attributes’ is required to be first added to the post type generated manually, in order, to later call the ‘menu_order‘ directive. This directives allows the order to be done according to defined setting and not according to default post creation time.
You may read more about it, here
So the adding of the element to be controlled on functions.php would now look like this:
function list_faq() {
register_post_type('faq_questions',
array(
'labels' => array(
'name' => __('FAQ'),
'singular_name' => __('FAQ')
),
'public' => true,
'has_archive' => true,
'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
)
);
}
add_action('init', 'list_faq');
And the placing on the website of the fetched content would now look like this:
<div class="tabcontent-box" id="id">
<ul class="ul-content">
<?php
$query = new WP_Query(array(
'post_type' => 'faq_questions',
'orderby' => 'menu_order',
'order' => 'ASC',
'tax_query' => array(
array(
'taxonomy' => $current_term->taxonomy,
'field' => 'slug',
'terms' => $current_term->slug
)
)
));
while ( $query->have_posts() ) : $query->the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
</li>
<?php endwhile; ?>
</ul>
</div>
And now… the magic returns, and moving by drag-and-drop of the elements with this plugin is back to working.
You may also manually change the numbering of menu_order on the WordPress POST data base, according the post_type of the highlighted chosen by you name. This is required when you have more p