1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

calling images on single.php/single post

Discussion in 'Content Management' started by Razorsoft, Jul 15, 2009.

  1. #1
    Any assistance here, I would like to use the medium picture on my post listing page (home page) but when the actual post is being viewed I would like to call the full image? Sounds very simple but It's been few days I been struggling with this. Could someone please help or let me know if there are plugins designed to do this?

    ps. I've attempted to get assistance at the wordpress.org forum with no avail.

    http://wordpress.org/support/topic/289237?replies=4#post-1139975

    the page in question is www.DOT. Sneakersummit.com

    Many Thanks in Advance
     
    Razorsoft, Jul 15, 2009 IP
  2. vrktech

    vrktech Well-Known Member

    Messages:
    449
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    if all your posts will be simillar then you can play with custom fields and edit your template to get medium picture on homepage and Full Size on detailed page.

    For an Idea:

    1) add 2 custom fields for each post medium image url and full image url
    2) edit your template index.php, archives.php to show the medium sized image and edit single.php

    got it? :)

    <<If someone has better idea please share>>
     
    vrktech, Jul 16, 2009 IP
  3. Razorsoft

    Razorsoft Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks friend, we'll give that a Try, and if Anyone else has a better idea please share
     
    Razorsoft, Jul 16, 2009 IP
  4. navjotjsingh

    navjotjsingh Well-Known Member

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    #4
    You can use TimThumb..it can create any sized image for front page while you can use full sized image on Single Post. You can also use a code to extract the image from post directly.

    If you don't want to use code to extract, then you need only one custom field for TimThumb which will generate image for front page and post full image in post.

    Get TimThumb from http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/
     
    navjotjsingh, Jul 17, 2009 IP