Forums

Twenty-Ten Thumbnails (26 posts)

  1. ricketts8
    Member
    Posted 1 year ago #

    Does Anyone Know How To Do This?

    Had some help earlier...http://wordpress.org/support/topic/twenty-ten-category-archive-thumbnails?replies=11

    That worked just fine but now I need to edit the size that code is spitting out and nothing I do will work. Following the codex to the letter and it crashes my wordpress install.

    Please help.

  2. MAS
    Member
    Posted 1 year ago #

    if you use the_post_thumbnail() then pass the size in the function like
    the_post_thumbnail(array(50,50))

    NOTE: Check once the Codex http://codex.wordpress.org/Function_Reference/the_post_thumbnail

    Chinmoy

  3. ricketts8
    Member
    Posted 1 year ago #

    What if I have different shaped pictures...some squares, some rectangles?

  4. keesiemeijer
    moderator
    Posted 1 year ago #

  5. ricketts8
    Member
    Posted 1 year ago #

    Like I said. I was following Codex instructions and it was crashing WordPress.

  6. keesiemeijer
    moderator
    Posted 1 year ago #

    What do you mean by crashing, can we get a link to the site please?

  7. ricketts8
    Member
    Posted 1 year ago #

    Gimme a minute.

  8. ricketts8
    Member
    Posted 1 year ago #

  9. keesiemeijer
    moderator
    Posted 1 year ago #

    can you show us the php code by which you show the thumbnail?

  10. ricketts8
    Member
    Posted 1 year ago #

    Cut and paste into the thread here? I saw a moderator/member flip when someone else did that...

  11. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    http://codex.wordpress.org/Forum_Welcome#Posting_Code
    up 2 10 lines of code is the rule, more than that, use the pastebin

  12. ricketts8
    Member
    Posted 1 year ago #

    http://wordpress.pastebin.com/wx8siy6a

    I followed those instructions

  13. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    //aside...

    I notice you are doing all your edits to twentyten?

    http://go.rvoodoo.com/WPchild

    You may wanna read up and get going on a child theme before you lose all your work

  14. ricketts8
    Member
    Posted 1 year ago #

    I know all about that. This is a test site anyway. I need help with thumbnails please.

  15. keesiemeijer
    moderator
    Posted 1 year ago #

    Maybe you have to re-upload the second image so WordPress can create the post thumbnail sizes.

  16. ricketts8
    Member
    Posted 1 year ago #

    Have tried that.

  17. keesiemeijer
    moderator
    Posted 1 year ago #

    Can you try that again because the first picture is linked to the correct image size: LightheadCover-260x198.jpg. And the second picture is linked to the full size picture. Check with ftp or or whatever file management application your host provides if the other sizes are available in your upload folder wp-content/uploads/2011/01/ .

  18. ricketts8
    Member
    Posted 1 year ago #

    It did this on the other site and with other pictures, cutting the picture in half instead of resizing. And yes, other sizes look to be available in FTP.

  19. keesiemeijer
    moderator
    Posted 1 year ago #

    Did you figure it out? When I look at: http://portnoy.emprisereview.com/?cat=13 It looks like the image size is changed?

  20. ricketts8
    Member
    Posted 1 year ago #

    Yeah, kinda. The change made there worked much better on the real site. Now it's a matter of locking down CSS.

  21. ricketts8
    Member
    Posted 1 year ago #

    Last question: How do I make it so that the excerpt is next to and not below the thumbnail?

  22. keesiemeijer
    moderator
    Posted 1 year ago #

    try:

    img.wp-post-image {
    float: left;
    }

    in your style.css

  23. ricketts8
    Member
    Posted 1 year ago #

    Afraid of that. I had the float and had the thumbnail going left but the text was staying down below the thumbnail.

  24. keesiemeijer
    moderator
    Posted 1 year ago #

    try deleting: clear: both; from this in your stylesheet:

    .entry-content,
    .entry-summary {
    	clear: both;
    	padding: 12px 0 0 0;
    }

    and change

    img.wp-post-image {
    float: left;
    }

    to this:

    img.wp-post-image {
    	float: left;
    	padding: 12px 12px 12px 0;
    }
  25. ricketts8
    Member
    Posted 1 year ago #

    Nice. That did it. Thanks.

  26. ricketts8
    Member
    Posted 1 year ago #

    Is anyone still watching this thread? I have another question.

    I need different thumbnail sizes. The default thumbnail is 100x150, which is fine. I also need the opposite ratio, so let's say 150x100.

    I know the code to add in the function.php file, I think my problem is in the template page.
    *****code starts*****
    <div class="entry-thumbnail">
    <?php the_post_thumbnail('thumbnail'); ?>
    <?php the_post_thumbnail( 'category-thumb' ); ?>
    <div class="entry-summary">
    <?php the_excerpt(); ?>
    </div><!-- .entry-summary -->
    </div><!-- .entry-thumbnail -->
    *****code ends******

    I pasted in the '<?php the_post_thumbnail( 'category-thumb' ); ?>' line to my existing and working template and I wasn't given the option for the second thumbnail. I'd guess it's some and or language I need--I don't know what it is--

Topic Closed

This topic has been closed to new replies.

About this Topic