Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    That will depend on how the images are called from within your theme or plugin.

    This should help you add Photon support to the function handling the image display:
    https://jetpack.me/2013/07/11/photon-and-themes/

    I hope this helps.

    Thread Starter gordo019

    (@gordo019)

    I pasted this into my functions.php per the above ticket….but is there more to it?

    if( function_exists( ‘jetpack_photon_url’ ) ) {
    add_filter( ‘jetpack_photon_url’, ‘jetpack_photon_url’, 10, 3 );
    }

    Thread Starter gordo019

    (@gordo019)

    Got it. Just this…. no add filter.
    <img src=”<?php echo jetpack_photon_url( get_template_directory_uri() . ‘/img/logo.jpg’ ); ?>”>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Photo with Custom Post Types’ is closed to new replies.