the_title() and the_permalink() won’t work on AJAX calls

Try this:

function h5b_ajax_get_user_drinks() {
    return get_template_part( 'drinks' );

    exit;
}

Leave a Comment

tech