Unable to reorder trainers or classes in Fitpro

Support Forums for LiveMesh Themes & Plugins Forums FitPro Theme Support Unable to reorder trainers or classes in Fitpro

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8303
    ajumbra
    Participant

    Neither the drag-and-drop reorder page nor the reorder number for classes and trainers has any effect. Is the purchase of the advanced plugin required to make this functional? We need to be able to put trainers and classes in alpha order and currently, they are displaying the order they were added (which is a problem when trainers and classes are added and removed to the site over the course of time).
    Thanks in advance.

    #8314
    Raghavendra
    Moderator

    Yes, at present, it is based on the order in which they are added or the date set for the post. You can change the date in such a way that the order is changed. If you do not want to do that way (since changing date can look like a hack), pls specify if this change you required is for the classes/trainers page or the home page where shortcodes are used and I can post the custom code that is required to achieve this. Thanks

    #8320
    ajumbra
    Participant

    Currently, the order would be applied to the Classes and Trainers pages (not the home page).

    #8330
    Veena
    Moderator

    Pls add ‘orderby’ => ‘title’, ‘order’ => ‘DESC’ parameters to $query_args in files template-trainers.php(line no:16) and template-classes.php(line no:16).

    eg: $query_args = array(‘post_type’ => ‘fitness_class’, ‘posts_per_page’ => -1, ‘orderby’ => ‘title’, ‘order’ => ‘DESC’ );
    This will reorder classes in to descending order.

    #8344
    ajumbra
    Participant

    I just switched the order to ASC and it worked like a charm! Thanks!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Unable to reorder trainers or classes in Fitpro’ is closed to new replies.