Changing the Order of the Posts

Homepage Community Forums Agile Theme Support Changing the Order of the Posts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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/

      #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.

        #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

          #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>';
                }
            }
            }*/
            
            #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

              #883
              Wes
              Moderator

                You’re Welcome!

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Changing the Order of the Posts’ is closed to new replies.