Show all post in a custom template

Homepage Community Forums Agile Theme Support Show all post in a custom template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #869
    CHARLIEGOLF
    Customer

      I changed the home template to have my own template displayng a gallery with a specific set of photoes. I want to change the custom loop to show instead 10 posts, all posts. I tried to eliminate the line about the pagination but i don’t know ho to rewrite the loop like for each…

      // Add custom loop
      add_action(‘genesis_loop’, ‘portfolio_loop’);
      function portfolio_loop() {
      $include=’stemmicomuni’;
      $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;

      $args = array(‘post_type’ => $include, ‘order’=> ‘ASC’,’paged’=> $paged);

      genesis_custom_loop( $args );
      }

      tnx a lot. Carletto

      genesis();

      #870
      Wes
      Moderator

        With the code that was originally there, you were able to have unlimited posts on the front page. Maybe you can check your Genesis theme settings to make sure you don’t have the blog set to show 10 posts.

        I’m not an expert when it comes to custom loops just yet and I don’t want to give you the wrong advice. I would suggest checking StudioPress for more info on how they work if you’re unable to figure it out – http://www.studiopress.com/tutorials/community

        #876
        CHARLIEGOLF
        Customer

          it was simple instead of var $paged i put this
          $args = array(‘post_type’ => $include, ‘order’=> ‘ASC’,’posts_per_page’ => -1);

          it worked. Tnx a lot

          #877
          Wes
          Moderator

            Ok, great!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Show all post in a custom template’ is closed to new replies.