Offset on featured posts?

  • Author
    Posts
  • #113356
    Henk van den Bor
    Power User

    Can an offset be set on featured posts? For example featured posts (1) show 4 posts and featured post 2 then should have an offset of 4 posts.

    Thanks for your answer…

    Website: webtaurus.nl

    #114094
    Zed
    Cryout Creations mastermind

    Hi,
    I assume you are referring to the featured boxes sections (since those are the only sections that display posts and come in multiple instances).
    There is no readily available option to configure such behaviour, however you can make use of the theme’s query filter to override the query responsible with retrieving the posts:

    $args = apply_filters( 'bravada_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 ‘Offset on featured posts?’ is closed to new replies.