custom post query in a theme that pulls from the networks main site

How can i make this pull from categories on the main site and not each blog?

  • Mark Wallace
    • Learn-ing-er

    :slight_smile:

    get_header(); ?>
    
    <div id="primary">
    	<div id="content" role="main">
    	<ul>
    		<?php
    		global $post;
    		$number_of_posts = 10000;
    		$args = array( 'numberposts' => $number_of_posts);
    		$myposts = get_posts( $args );
    		foreach( $myposts as $post ) :	setup_postdata($post); ?>
    			<li>
    				<a href=""<?php" the_permalink(); ?>">
    					<?php the_post_thumbnail(); ?>
    					<h4><?php the_title(); ?></h4>
    				</a>
    				<p><?php the_excerpt(); ?></p>
    			</li>
    		<?php endforeach; ?>
    	</ul>
    	</div>
    </div>
    <?php get_footer();
  • Brian Purkiss
    • Smushie Pies

    We hope you were able to resolve this. Since this thread has been inactive for some time I am going to go ahead and close the ticket. If you were unable to resolve it or have any further questions, please feel free to re-open the ticket – we are more than happy to help!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.