How to change the order of the featured boxes

  • Author
    Posts
  • #112675
    pdelsa
    Power User

    Featured boxes are ordered by default using the creation date. I’d like to set the order how to display the boxes on my page instead of the creation date.
    Is there a way to manage it?

    Regards,
    Paolo.

    #114009
    Zed
    Cryout Creations mastermind

    Hi,
    To customize the order either edit the publish date to make those reflect the desired order or make use of the theme’s roseta_boxes_query_args filter to customize the query that retrieves the boxes content.

    $args = apply_filters( 'roseta_boxes_query_args', array(
    		'showposts' => $options['theme_lpboxcount' . $sid],
    		'cat' => cryout_localize_cat( $cat ),
    		'ignore_sticky_posts' => 1,
    		'lang' => cryout_localize_code()
    	), $options['theme_lpboxcat' . $sid], $sid );
    
    $custom_query->query( $args );

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to change the order of the featured boxes’ is closed to new replies.