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

This topic is: resolved

This topic contains 4 replies, has 3 voices, and was last updated by Ajumbra ajumbra 5 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8303
    Ajumbra
    ajumbra
    Participant
    Post count: 12

    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
    Raghavendra
    Moderator
    Post count: 4701

    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
    ajumbra
    Participant
    Post count: 12

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

    #8330
    Veena
    Veena
    Moderator
    Post count: 8167

    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
    ajumbra
    Participant
    Post count: 12

    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.