Viewing 1 replies (of 1 total)
  • Thread Starter Sharena

    (@sharena)

    DO I NEED TO CHANGE SOMETHING IN CODE:

    $args = array( ‘meta_key’ => ‘feat_front’, ‘meta_value’=> ‘1’, ‘suppress_filters’ => 0, ‘post_type’ => array(‘post’, ‘page’), ‘post_status’ => ‘publish’, ‘numberposts’ => 30, ‘orderby’ => $feat_sort, ‘order’ => $feat_order
    );

    $myposts = get_posts( $args );

    if(!$myposts) {

    $args = array(‘suppress_filters’ => 0, ‘post_type’ => array(‘post’), ‘post_status’ => ‘publish’, ‘numberposts’ => 30, ‘orderby’ => $feat_sort, ‘order’ => $feat_order
    );

Viewing 1 replies (of 1 total)
  • The topic ‘Empty space on my main paige’ is closed to new replies.