• Hi! How can add callback multi function with php and javascript? Example:

    <script type="text/javascript">
    $(document).ready(function(){
    	var stream = {
    		title: "<?php the_title(); ?>",
    mp3: "<?php
         $my_meta = get_post_custom_values( 'mp3', $ID );
         if ( $my_meta) {
             foreach ( $my_meta as $val_key => $val_val ) echo $val_val;
         }
    ?>",
    ready = false;
    	$("#player_<?php the_ID(); ?>").Player({
    Player: "#player_<?php the_ID(); ?>",
    		ready: function (event) {
    			ready = true;
    		},
    	});
    });
    </script>

    http://wordpress.org/plugins/infinite-scroll/

The topic ‘Callback with php and javascript’ is closed to new replies.