Help creating 2 different sized post thumbnails for home page

Homepage Community Forums Agile Theme Support Help creating 2 different sized post thumbnails for home page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1262
    JMDesign
    Customer

      hey guys

      i need to be able to create 2 different sized thumbnails for the home page, instead of them being all the same

       

      something like what was done here http://www.danielgray.com/

       

      is this possible? figured i could do something like if is in category ‘1’, do one post thumbnail size, if else, do another post thumbnail size…but unfortunately complex php is beyond me.

       

      the function i figured could be modified is below, hoping something can take a look, or suggest an alternative way?

      <code>// Add Featured Image for the Portfolio posts in this Page Template
      add_action(‘genesis_before_post_content’, ‘agile_home_portfolio_do_post_image’);
      function agile_home_portfolio_do_post_image() {
      $img = genesis_get_image( array( ‘format’ => ‘html’, ‘size’ => ‘home-portfolio-thumbnail’, ‘attr’ => array( ‘class’ => ‘alignnone post-image port-img’ ) ) );
      printf( ‘<a href=”%s” title=”%s”>%s</a>’, get_permalink(), the_title_attribute(‘echo=0’), $img );
      }</code>

      #1263
      Wes
      Moderator

        I was thinking of making a theme with a feature similar to the link you suggested.

        I haven’t started on it yet, but you could check out this link – http://wp-snippets.com/add-oddeven-to-posts/ this should help.

        You could also make changes to certain css specifically

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.