Showing Author Information and Latest Post by author in lightbox when clicked on the name of the author

You will want to implement that using AJAX. Read these two articles from the Codex for further information about integrating WordPress with some AJAX action: AJAX AJAX in Plugins Just to give you a head start, you will want something like this: Client-side (Javascript) $(element).click(function() { var data = { action: ‘get_author_info’, author_id: your-author-id }; … Read more

Load content in a div with ajax

Use Ajax API provided by WordPress. In first time, fix your Ajax request : <script> $(“.post-link”).click(function(){ var post_id = $(this).attr(“rel”); //this is the post id $(“#post-container”).html(“content loading”); $.ajax({ url: myapiurl.ajax_url, type: ‘post|get|put’, data: { action: ‘my_php_function_name’, post_id: post_id }, success: function(data) { // What I have to do… }, fail: { // What I have … Read more

update_user_meta() does not work

You set the variable $user before you created this user.. It should be like this and you need to check if the user already exists $user = get_user_by(“email”, $email); // Its return you the user object if($user) { update_user_meta($user->ID, “quiz_scores”, $score); } else { $user_id = register_new_user($email, $_SESSION[“email”]); update_user_meta($user_id, “quiz_scores”, $score); }