• I am using absoulte path.. and have activated photon but still all images are via my own domain..

    Link http://ipri.me
    While I am not worried about image sin header etc. if you scroll down you can see the posts and their featured images which I was hoping to be delivered by photon

    //get featured image
    $thumb = get_post_thumbnail_id();
    $img_url = wp_get_attachment_url($thumb,'full'); //get full URL to image
    //crop image
    $featured_image = aq_resize( $img_url, 105); //resize & crop the image

    Any suggestions please

    http://wordpress.org/plugins/jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor designsimply

    (@designsimply)

    Based on your code example, it looks like you are using a custom function, aq_resize(), instead of a featured image via built-in WordPress functions. Try using the_post_thumbnail() instead. You should be able to resize the image with that and then crop them (if you want) using the tools in the Media section of your blog dashboard as mentioned on this page:
    http://codex.wordpress.org/Function_Reference/the_post_thumbnail

    I tested it just now, and the featured image in my test showed up with Photon. In my test, i used the Twenty Eleven theme to display a featured image using the_post_thumbnail() at the top of single posts.

    Thread Starter lahoti

    (@lahoti)

    Thanks.. that was what I was suspecting but
    i used following code on the site: http://ipri.me/homebk
    (link is not the homepage just a bakup of main page)

    <div class="logo_partner"><?php the_post_thumbnail(array(105)); ?></div>

    it still is not cached..? Its almost half hour..

    Plugin Contributor designsimply

    (@designsimply)

    Hm, I can’t really tell based on that alone. Would you be able to put the entire content of the php file where that appears into a pastebin so I can take a closer look? Maybe I will be able to see something there that will help explain what’s happening.

    Thread Starter lahoti

    (@lahoti)

    Ok … http://pastebin.com/TT900egK

    Besides that it seems image are loading fast but still delievered from my server so..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Photon activated still delivers images from my domain’ is closed to new replies.