Support » Plugin: Simple Custom Post Order » Issue with sorting taxonomies

  • Resolved daniel.edwins

    (@danieledwins)


    Hello,

    In the scporder_get_terms_orderby() function, the $taxonomy variable (from $args[‘taxonomy’]) is an array with one taxonomy name as an item, so in_array is comparing two arrays.

    We had to add the following to get it work:

    
    $taxonomy = $args['taxonomy'];
    if(is_array($taxonomy)) { // new addition
        $taxonomy = $taxonomy[0];
    }
    

    Can you add this into the plugin?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mplusb

    (@mplusb)

    Thank you for letting us know about this!
    I have opened a ticket on GitHub which you can follow here: https://github.com/ColorlibHQ/simple-custom-post-order/issues/49
    Once this will be fixed it will be addressed in a next update.

    Thank you once again!

    Note: This topic will be marked as resolved as we have opened a ticket on GitHub regarding it.

    All the best,
    Mihaela

    ACF Content Analysis for Yoast SEO – 2.3.0
    ACF QuickEdit Fields – 3.0.1
    Admin Columns – 3.4.6
    Admin Taxonomy Filter
    Advanced Access Manager – 5.9.9.1
    Advanced Custom Fields PRO – 5.8.4
    Ajax Pagination and Infinite Scroll – 2.0.1
    ARI Fancy Lightbox – 1.3.6
    Better Search Replace – 1.3.3
    Classic Editor – 1.5
    Code Snippets – 2.13.3
    Contact Form 7 – 5.1.4
    Contact Form 7 – Dynamic Text Extension – 2.0.3
    Contact Form 7 Honeypot – 1.14
    Contact Form 7 Modules: Hidden Fields – 2.0.2
    Contact Form 7 Redirection – 1.3.3
    Contact Form 7 Shortcode Enabler – 1.1
    Custom Post Type UI – 1.6.2
    Drag and Drop Multiple File Upload – Contact Form 7 – 1.3.0
    Duplicate Post – 3.2.3
    Dynamic Animations for Elementor – 1.0.0
    DynamicConditions – 1.4.0
    Dynamic Visibility for Elementor – 3.0.1
    Easy Google Fonts – 1.4.4
    Elementor – 2.7.1
    Elementor Pro – 2.6.5
    Enable Media Replace – 3.3.6
    Essential Addons for Elementor – 3.2.1
    Fast Velocity Minify – 2.7.4
    GDPR Cookie Consent Banner – 2.3.14
    JetElements For Elementor – 2.0.1
    Jet Plugins Wizard – 1.2.2
    Lazy Loader – 5.0.0
    Loco Translate – 2.3.0
    Media Alt Renamer – 0.0.1
    Media Cleaner – 5.4.4
    Media File Renamer (Auto Rename) – 4.5.7
    MouseWheel Smooth Scroll – 5.2
    No Page Comment – 1.2
    Page scroll to id – 1.6.6
    Permalink Manager Lite – 2.2.6
    Postman SMTP – 1.7.2
    PowerPack Lite for Elementor – 1.2.6
    Quick Alt Editor – 1.0.2
    Quick Featured Images – 13.3.4
    Regenerate Thumbnails – 3.1.1
    Remove Taxonomy Base Slug – 2.1
    Responsive Menu – 3.1.24
    Sassy Social Share – 3.2.28
    Simple Custom Post Order – 2.4.5
    Simple Image Sizes – 3.2.1
    Sticky Header Effects for Elementor – 1.3.2
    Swift Performance Lite – 2.1
    Update Theme and Plugins from Zip File – 1.1.0
    Wanna Isotope – 1.0.4
    Webcraftic Assets manager – 1.0.7
    Webcraftic Robin image optimizer – 1.4.0
    Woody ad snippets (PHP snippets | Insert PHP) – 2.2.7
    WP Rollback – 1.6
    Yoast SEO – 12.0

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with sorting taxonomies’ is closed to new replies.