• Resolved ossedk

    (@ossedk)


    Hello,

    I’m using your plugin together with the theme Listify.

    I need to sort the listing by “RATING” – which is a integer hold in $number.

    How do I go about adding it as orderby, so I can sort a listing by rating and do it easy via the short code like:

    [jobs per_page=”10″ orderby=”RATING” show_filters=”false” show_categories=”false” categories=”16″ show_pagination=”false”]

    Let me know, thanks.

    https://ww.wp.xz.cn/plugins/wp-job-manager/

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    Ah ok 🙂

    Hi Mike, Hi ossedk,

    I’m using WP Job Manager plugin with Listify theme too.
    As ossedk, I want to sort listings by rating.

    I put this function in the “function.php” file of my theme :

    function args_function_rating_dsaw($args) {
        $args['orderby'] = 'meta_value_num';
        $args['order'] = 'DESC';
        $args['meta_key'] = 'rating';
        return $args;
        }

    But now, when I call this function in the “class-wp-job-manager-template.php” file :

    public function output_results( $content ) {
    		if ( '' != $content ) {
    			echo do_shortcode( $content );
    		} else {
    			echo do_shortcode( apply_filters( 'listify_default_jobs_shortcode', '[jobs per_page="5" orderby="rating" show_filters="true"]' ) );
    		}
    	}

    It doesn’t work at all…
    Can you please help me a little and point what I miss ?
    I’m totally stuck at this point since days.

    Thanks for your answer,
    Franklin.

    Hello,
    first I introduce myself, my name is Felipe.
    I have installed the listify template in a site where users post ads.
    ads are displayed in order of geographical location.
    they also want to show in order of geographical location, which is also displayed by the type of contract Packete.
    Someone could help me and tell me that is the function I have to change.
    thanks

    Hey mike,
    Using listify theme.
    WP-job manager tags
    I need to change the order of the tags according to my custom order.
    How can i do that??

    Thanks in advance.

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    @bhaveshpatel640: Hi there!

    Please use this form to get support for our paid add-ons:

    https://wpjobmanager.com/support/

    We are not allowed to support premium plugins in these forums.

    Thanks!

Viewing 5 replies - 16 through 20 (of 20 total)

The topic ‘Adding another ORDERBY for the shortcode’ is closed to new replies.