Jetpack Photon with admin-ajax.php
-
Hi,
I’m interested if it’s possible to load Photon with admin-ajax.php
Here’s what I have:function mfields_ajax_show_post() { $id = ( isset( $_GET['p'] ) ) ? (int) $_GET['p'] : false; query_posts( array( 'p' => $id ) ); if ( have_posts() ) { while( have_posts() ) { the_post(); get_template_part('content'); } } exit; } add_action( 'wp_ajax_mfields_show_post', 'mfields_ajax_show_post' ); add_action( 'wp_ajax_nopriv_mfields_show_post', 'mfields_ajax_show_post' );
/wp-admin/admin-ajax.php?action=mfields_show_post&p=25 works fine but it doesn’t filter the image url through Photon.
Any help?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Jetpack Photon with admin-ajax.php’ is closed to new replies.