Aug
12
awarded Popular Question
Nov
29
awarded Commentator
Nov
29
comment How to assign div value to php variable using Jquery Ajax call
Now the function doThumb() is returning the post_id to the empty <div> that is selectedResult, i have to grab that result and pass it to the code ---------> $my_postid = "Should pass the value here";//This is page id or post id $content_post = get_post($my_postid); now can you kindly tell me where shall i put this code, can i put this code in the function doThumb(). im not a pro, so kindly bare with me
Nov
28
comment How to assign div value to php variable using Jquery Ajax call
$(function() { $('#selectedResult').click(function() { var $mainCats=$('#selectedResult').val(); alert ($mainCats); $.ajax ( { url:"<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php", type:'POST', data:'action=my_special_ajax_callc&main_catidc=' + $mainCats, { $("#selectedResults").removeAttr("disabled"); $("#selectedResults").append(results); } } ); }); });
Nov
28
comment How to assign div value to php variable using Jquery Ajax call
the same event is applied here also
Nov
28
comment How to assign div value to php variable using Jquery Ajax call
href tag is where i click an image, and clicking the image through JS im passing the post id associated with image, that id i have to pass it to $my_postid dynamically....
Nov
28
asked How to assign div value to php variable using Jquery Ajax call
Nov
21
awarded Editor
Nov
21
revised How to pass the term slug to the ajax function as a parameter
deleted 112 characters in body
Nov
21
asked How to pass the term slug to the ajax function as a parameter
Jun
28
comment Saving frontend form data in wordpress
as you know WordPress does not have the enctype="multipart/form-data" attribute which is required for file uploading. So yeah in my code i didnt write logic for the uploaded image, can you guide me where to keep this <?php wp_generate_attachment_metadata( $attachment_id, $file ); ?> and what args should i pass in the function, kindly bare with me
Jun
28
comment Saving frontend form data in wordpress
@user801773 i have seen the gravity forms, yeah it completes my task but as i said can this be done without plugin
Jun
28
comment Saving frontend form data in wordpress
@kaiser i created a template page for user, so in the User template page im writing this code
Jun
28
comment Saving frontend form data in wordpress
@kaiser no kaiser..... without any plugin involvement im writing the logic manually.....as my client doesn't want plugins. can this be done
Jun
28
asked Saving frontend form data in wordpress
Jun
21
comment How to filter Multiple taxonomies with radio buttons
@userabuser hi, here is the complete code pastebin.com/EUvz6Fa6 For a test purpose im retrieving all the posts, i'll replace all the posts with an image of the car brand later
Jun
20
comment How to filter Multiple taxonomies with radio buttons
Thanks a lot for ur generous help.... below is the code what i have tried after going through your code. kindly check once am i on the right track or not....
Jun
20
answered How to filter Multiple taxonomies with radio buttons
Jun
16
asked Sort posts based on multiple custom fields
Jun
4
accepted how to get the post id in the option tag
1 2 3 4