• IM using the Woo Headlines Theme and I am trying to convert the code for the posts featured image to wordpress default one and not woothemes featured image.

    The problems I am having is I can get the pictures resized or aligned. I also can get the css wrap box around it like in the themes default image.

    Right now Im using <?php the_post_thumbnail(‘thumbnail ‘.$GLOBALS[‘align’]); ?>
    and I have these functions in my functions.php

    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 200, 200, true ); // Normal post thumbnails
    add_image_size( ‘single-post-thumbnail’, 400, 9999 ); // Permalink thumbnail size

    HAs anybody accomplished this? If so could you help me.

Viewing 1 replies (of 1 total)
  • Thread Starter creamers

    (@creamers)

    Never mind I found the code snippit I needed.

    To convert it you need to add
    the_post_thumbnail(array(100,100), array('class' => 'alignleft'));
    in place of the woo_get_image function.

    <strike>Though the css still isn’t taking affect and I haven’t changed any actual tags. </strike>

    Ah the border around it is coming from thumbs.php so I gusse there is no way around that.

Viewing 1 replies (of 1 total)
  • The topic ‘Converting woo_get_image to the_post_thumbnail’ is closed to new replies.