WordPress.org

Ready to get started?Download WordPress

Forums

WP Query Search Filter
Greek tags alphabetically - is it possible? (7 posts)

  1. IoannisX
    Member
    Posted 1 year ago #

    Is it possible at the pull-down menu of the widget, the event-tags (in my case in greek) can they get sorted alphabetically??
    Please help.

    http://wordpress.org/extend/plugins/wp-query-search-filter/

  2. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    You can try add this 'orderby=name' to wqsf-widget.php line 51.

    from
    $terms = get_terms($v['taxname'],'hide_empty='.$v['hide'].'');
    to something like this:
    $terms = get_terms($v['taxname'],'orderby=name&hide_empty='.$v['hide'].'');

    I don't sure if this work with Greek, but if you set your wp with utf8 then it should be fine.

  3. IoannisX
    Member
    Posted 1 year ago #

    Thank you for your quick reply but although my wp is set with utf8, this solution didn't work :(
    Is there anything else I can do?
    Thanks in advance.

  4. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    Maybe you should play around with get_terms api.
    Here is the link

    Hope this helps.

  5. IoannisX
    Member
    Posted 1 year ago #

    I added 'orderby=slug' to wqsf-widget.php line 51.
    I used english characters for my slugs but didn't work.
    All my event-tags are listed by the order i create them.
    Maybe i need to add 'orderby=slug' anywhere else too in wqsf-widget.php?
    Thank you in advance.

  6. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    Are u using the shortcodes or sidebar widget to display the search form? Because the above solution work with the sidebar widget only.

  7. IoannisX
    Member
    Posted 1 year ago #

    I'm using the sidebar widget and your solution doesn't work :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.