wordpress wp_enqueue_script() not working

You need to be hooking the function that calls the enqueue, personally I actually like to register scripts and enqueue them separately, rather than just enqueueing them, as it allows the flexibilty to enqueue conditionally and can save keystrokes down the line at little to no performance penalty. The code you are going to need … Read more

Show a different code on front page to other pages

You can use the wordpress template hierarchy to do just that. Specifically, you can put the code you want in front-page.php and then use index.php for the rest of them, though that’s a rather bland way of doing design with what you have on your hands. Alternately, there are the wordpress conditional tags which can … Read more

How do I Import / Upload Files with jQuery AJAX?

I haven’t tried but i think you need to add FormData object directly as data parameter. Something like this var ajaxData = new FormData(); ajaxData.append( ‘action’, ‘ajax_handler_import’ ); ajaxData.append( ‘_ajax_nonce’, importNonce ); // or maybe skip the nonce for now jQuery.each($(‘#fileImportData’)[0].files, function(i, file) { ajaxData.append(‘file-‘+i, file); }); The rest of your code goes as it … Read more

Exclude category

To exclude a category, you need to know its ID. You can then exclude it like this (please not the minus before the ID): $args = array( ‘posts_per_page’ => 4, ‘cat’ => -the_category_id_to_put_in); The WP Query class reference has more information if you need it: http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters

how to make my website secured

It may possible that he is trying to hack. I am sure you are storing form data after escaping/sanitizing the content which eliminate the risk of Sql injection and since user can submit empty form it mean you haven done the server side validation. what you need to check is First check that weather field … Read more