Home Forums Themes Support Circle Video filter order

This topic contains 5 replies, has 2 voices, and was last updated by  admin 2 weeks, 4 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1198

    In Haru video element I’ve selected several categories in order I’d like the filters to be shown but filters are shown in alphabetical order anyway.
    Is there any way to have filters being shown in custom order?
    See attached files.

    Attachments:
    You must be logged in to view attached files.
    #1205

    Hi,
    The order of category by name is default by WordPress.
    Now it in wp-content/haru-circle-core/templates/posttypes/video/grid.php and $terms variable.
    We’ll research to make it order in shortcode field.

    *****
    Regards,
    HaruTheme

    #1209

    Thanks, it will be great to have this configurable.
    In the meantime – can you assist on how to change the grid.php file so that the filters are ordered by name / description / whatever?

    #1211

    Hi,
    Now you can order category by change code from:

    $array_terms = array(
      'include' => $termIds,
    );

    to

    $array_terms = array(
      'include' => $termIds,
      'orderby' => 'name',
      'order' => 'DESC',
    );

    More details about $array_terms ($args) you can see more from this topic:

    get_terms()


    Hope this help you!

    ******
    Best regards,
    HaruTheme

    #1215

    I’ve tried it, but with no effect.
    I’ve edited both grid.php and grid_special.php files (just to double check) but sorting is still the default one.
    I’ve tried sorting by name, description, count (all as per get_terms description) but no effect on the video filtering grid.

    Any ideas anyone?

    #1217

    Sorry but can you try from DESC to ASC you will see the change.
    Also you can see the original topic to make more order type!

    *****
    Best regards,
    HaruTheme

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.