Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author teastudio.pl

    (@teastudiopl)

    this is correct:

    ..
    post_type="page" all_items="3" show_only="id" posts="179,176,894" ordering="asc"
    ..
    Thread Starter pavegraphics

    (@pavegraphics)

    Sorry I wasn’t clear, I require them in the order 179, 176, 894. I think asc orders them lowest to highest? 176, 179, 894

    Plugin Author teastudio.pl

    (@teastudiopl)

    so, you can do this only by using a filter “wpc_query” to clear the query params;

    try this:

    function my_wpc_query( $query_args ) {
           unset($query_args['orderby']);
           unset($query_args['order']);
           return $query_args;
    }
    add_filter('wpc_query', 'my_wpc_query', 1, 1);

    and let me know.

    Thread Starter pavegraphics

    (@pavegraphics)

    Hi,
    Just got round to updating this bit…
    I’m really sorry I don’t quite get what I’m supposed to do here, can you help a bit more? I added the above code in full to my themes functions.php file but not quite sure what to do next as I don’t understand filters and query params…
    Thanks so much for your help, I know it’s a petty request!

    Thread Starter pavegraphics

    (@pavegraphics)

    Sorry another request on this front – I have used the Carousel on the site for other pages, it seems this function breaks the ordering I had set up on those (i had left ‘ordering’ blank so they were ordered by the ordering on the ‘Pages’ post list) ??
    As a feature request maybe there could be more order filters built in?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom ordering’ is closed to new replies.