Created
October 9, 2014 14:56
-
-
Save igmoweb/039d8efae91970f969d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_ajax_fictizia_load_posts', 'fictizia_load_posts' ); | |
add_action( 'wp_ajax_nopriv_fictizia_load_posts', 'fictizia_load_posts' ); | |
function fictizia_load_posts() { | |
$posts = // SELECCIONAMOS LOS POSTS | |
wp_send_json( $posts ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment