Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Post order Reply To: Post order

#15603
Tom
Keymaster

Kind of silly, but you could build a “wrapper” shortcode:

add_action( 'my-posts-shortcode', function() {
    ob_start();
        $settings = array(
            'meta_key' => 'priority',
            'orderby' => 'meta_value',
            'order' => 'ASC',
        );

        wpsp_display( 123, $settings );
    return ob_get_clean();
} );

Then you could add this to your block: [my-posts-shortcode]