Leave a Reply

1 comment

  1. Try WP_Query to get the posts, since get_posts() also makes use of it:

    $args = array(
        'category_name' => 'product-videos',
        'posts_per_page' => 5000, // or -1 if you want all
        'offset' => 1
    );
    
    $the_query = new WP_Query( $args );
    
    if ( $the_query->have_posts() ) :
        while ( $the_query->have_posts() ):
            $the_query->the_post();
            ?>
            <option value=”<?php the_ID(); ?>” <?php $mb->the_select_state(get_the_ID());?> ><?php echo get_the_title(get_the_ID()); ?></option>
            <?php
        endwhile;
    endif;