Skip to content

Offset doesn't work for "new WP_Query_Multisite"? #12

@Hanz17

Description

@Hanz17

Hello, I don´t know, why offset doesn't work in my code. Can you help me with solution? Thanks :)

10, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish', 'offset' => 4, 'sites' => array( 'sites__in' => array( 1, 2, 3, 4, 5 ) ) ); $query = new WP_Query_Multisite( $args); while ( $query->have_posts() ) : $query->the_post(); ${'blog_url_'.$blog_key} = get_blog_option($blog_key,'siteurl'); $blog_odkaz = ${'blog_url_'.$blog_key} ; //Blog URL in Czech $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' ); $imageURL = str_replace( 'http://sportzine.eu', $blog_odkaz, $image[0] ); $imageTag = '

'; ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions