• Resolved elmills81

    (@elmills81)


    When using a shortcode like this, there is no response on the field sorting. Even with the just the default name.

    [list_sermons tax=”wpfc_preacher” order=”DESC” orderby=”count”]

    Looking at the list_sermons shortcode php code I dont see any filter being applied and cant determine where the sorting may or may not be taking place.

    fro this function wpfc_list_sermons_shortcode it calls $terms = get_terms($tax);

    I think it needs something more like this:

    $terms = apply_filters( 'sermon-images-get-terms', '', array('taxonomy' => $tax, 'term_args' => array('order' => $order, 'orderby' => $orderby) ) );

    Trying to see if I can find the right filter to apply.

    You can see the issue here: http://rccnew.rcovenant.org/sermons

    https://wordpress.org/plugins/sermon-manager-for-wordpress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also having the same drama. none of the ordering works on the list_sermons short code.

    Thanks

    Thread Starter elmills81

    (@elmills81)

    I haven’t figured out a solution yet on this issue. I actually paid for support and sent in questions thinking I would support the developer with some cash, but haven’t heard back either. I hope to have some time in the next couple of weeks to really dig through the code and determine what needs to change.

    I modified the file \wp-content\plugins\sermon-manager-for-wordpress\includes\shortcodes.php, and the sermons list is sorted.

    I changed line 19 from
    $terms = get_terms($tax);
    to
    $terms = get_terms($tax, $atts);

    Hope this helps.

    Thread Starter elmills81

    (@elmills81)

    MrWizard81 thanks for the suggested fix. I just updated the code and it solved the problem!

    Verified with testing on several pages and can confirm that it works.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[list_sermons] Shortcode order/orderby not working’ is closed to new replies.