• 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

Changing the Order of the Posts

Home › Community Forums › Agile Theme Support › Changing the Order of the Posts

Tagged: posts ordering

  • This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by Wes.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 27, 2012 at 7:00 pm #878
    russelm
    Customer

    Hi I purchased this theme and now tinkering with it. I was wondering if there was a way I could order the posts in some way that allows the images on the front / landing page to achieve a more controlled order / fixed order. It seems to order them by date from the latest to the oldest. I, of course can do this, however the date shown on the posts need to be relevant to the date they were generated…a Catch 22 if you like. Is there a plugin that can do this or do I need to write some coding? My test site is at http://acoolclass.com/efolio/

    April 27, 2012 at 8:10 pm #879
    Wes
    Moderator

    You’re in luck! I used this plugin to do something similar a long time ago, its called Post Types Order – http://wordpress.org/extend/plugins/post-types-order/

    Once you install it, look for the re-order link under the posts menu in your wp admin. Everything else is pretty simple, basically just drag and drop the posts in the order that you want them to be.

    April 27, 2012 at 9:11 pm #880
    russelm
    Customer

    Hi Wes,
    Thanks for the prompt reply! The suggested plugin is the bee’s knees. I had actually tried Global Posts Ordering and another post ordering plugin without any success, but the one you have suggested is just so easy and it works. This is what makes WordPress and Genesis so good to use!

    One further question regarding the setting out of that page. I may want to start an image (content post) for a new term’s (quarter) work on a row below. I am assuming that Agile theme, in its current form, will tile the images across until it reaches the page width and then drop to the next row. Is there any other plugin or way to give you granular control over this? e.g. I may have content for 5 images in the first row, but then would like to start the next content image on the second row. Hope this makes sense Wes.

    Look forward to hearing from you with any suggestions you may have.

    Regards

    Russelm

    April 27, 2012 at 9:42 pm #881
    Wes
    Moderator

    Currently the max-width for the #wrap is 1250px, which would fit about 6 images in a row. You could increase or decrease this number if you wanted to, but it will change the width of your entire site as well.

    Another option – In my other themes, I have code that adds a clear: both; after a certain number of posts…….in other words, it does exactly what you are asking for, and you control at which number/post everything starts over and creates a new row.

    You can add this to your home.php file and it should work (adjust the loop counter number if needed) –

    
    // Remove standard loop
    remove_action('genesis_loop', 'genesis_do_loop');
    
    // Clear float using genesis_custom_loop() $loop_counter variable
    // Outputs clearing div after every 5 posts
    // $loop_counter is incremented after this function is run
    add_action('genesis_after_post', 'portfolio_after_post');
    function portfolio_after_post() {
        global $loop_counter;
        
        if ( $loop_counter == 4 ) {
            $loop_counter = -1;
            echo '<div class="clear"></div>';
        }
    }
    }*/
    
    April 27, 2012 at 9:45 pm #882
    russelm
    Customer

    Cheers Wes…sounds really good. I will play around with the coding and setting up of this page over the next couple of days.
    Many thanks.

    Russel

    April 27, 2012 at 9:46 pm #883
    Wes
    Moderator

    You’re Welcome!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Changing the Order of the Posts’ 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 © 2023 · Appfinite · Built With The Genesis Framework