creating shortcode to pull json array

As per documentation on wp_remote_get() it doesn’t return you just the body of requested resource. Its return will be either the array of data or WP_Error object on failure. The simplest snippet to get to the body would be: $json = wp_remote_retrieve_body( wp_remote_get( $url ) ); PS it’s kinda weird to be doing this in … Read more

Generate dynamic page through data from another page

You need javascript code that make ajax request (after click on item from list) and display data from response. You will need also function that receive object ID from request and prepare response. Add function to action hook wp_ajax_nopriv_my_action add_action( ‘wp_ajax_nopriv_my_action’, ‘my_action’ ); function my_action() { $output=””; if ( isset($_POST[‘object_id’] ) { // prepare output … Read more