WordPress.org

Ready to get started?Download WordPress

Forums

WP Query Search Filter
[resolved] Short results by Title (6 posts)

  1. anargyriotis
    Member
    Posted 1 year ago #

    Thanks a lot for your plugin!

    When i use Meta Key search finds nothing.
    I am trying to short my search results by title using plugin's Meta Key option (title instead date) and 'Word' as Meta type value but i'm getting nothing in return.
    Is something i'm doing wrong?

    Thanks in advance.

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

  2. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    @anargyriotis,
    What do you mean by Meta key search finds nothing? The search found nothing only when you sorting the result using Sorting Meta Key with meta key 'title'?

    The sorting features currently only work with meta field. If you 'title' in the setting, it will assume that you have a meta key named "title" (which is you are not) and therefor no result found.

    In the nutshell, you can't sort the result by title from this plugin.

  3. anargyriotis
    Member
    Posted 1 year ago #

    @ron_dev,

    Thanks for your reply ron_dev.
    In this 'Meta key' field what keys can i use? (In your example you name the 'date' as shorting key). Or maybe i must define my metas to use with the plugin?

  4. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    The meta key filed for sorting is the meta key that must exist in your searched post. For example, if you have a meta field called "product_price" and you want to sort your search result in ascending price order. Then you should enter 'product_price' in the sorting meta key, Numeric for the Meta Value Type and Ascending Sorting Order.

    Yes, you should have meta field to use the sorting order.

  5. anargyriotis
    Member
    Posted 1 year ago #

    OK, i think i got it now. I will try it with one of my custom fields.

    Thank you very much!

  6. anargyriotis
    Member
    Posted 1 year ago #

    @ron_dev,

    Dear ron_dev, i found why it was'n working. 'Meta key' field needs 'wpcf-' prefix before your custom field name (eg. wpcf-xxx_xxxxxx).
    Now it working perfectly!

    Thanks once more for this nice plugin and for your help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic