• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Show all post in a custom template

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

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 3 months ago by Wes.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 26, 2012 at 3:52 am #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();

    April 26, 2012 at 4:03 am #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

    April 27, 2012 at 7:38 am #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

    April 27, 2012 at 5:40 pm #877
    Wes
    Moderator

    Ok, great!

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

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2022 · Appfinite · Built With The Genesis Framework