display user input using ajax in wordpress

I don’t have enough reputation to comment. Try giving the datatype to the ajax call maybe this is due to json error. Try adding datatype in your ajax as html for testing, then you can get into working path from these $.ajax({ type: ‘POST’, url: ajaxurl, dataType: “html”, data:{“action”:’InsertIntoDB’,message:text}, success:function(msg){ alert(msg); } Also just try … Read more

Why does WP_Query show only the same post even with different categories and endwhile?

If you want your posts based on different categories you should use category_name or cat as category id. For example; <?php $test = new WP_Query(‘cat=1&showposts=1’); // where 1 is the id of your cat ?> Or <?php $test = new WP_Query(‘category_name=errands&showposts=1’); ?> Also, you need to call wp_reset_postdata(); after each WP_Query. I hope this helps … Read more

Image not displayed

The first thing to check with a ‘headers already sent by…’ error is that you have no white space at the very start or the end of your php file. Check your images-options.php file and remove any errant space at the very start or the end of your code.

Query seems to be duplicated

Your queries are showing the same output, because they are identical Here is your first queries arguments: $args = array( ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘posts_per_page’ => 5, ‘paged’ => get_query_var(‘paged’), ‘tax_query’ => array( array( ‘taxonomy’ => ‘store-category’, ‘field’ => ‘id’, ‘terms’ => array($_POST[‘region’]) ) ) ); Here is your second queries arguments: $args … Read more

WordPress and magic quotes

Simply put WP turns indeterminate situation (magic quotes might or might not be enabled in server configuration) into determinate (magic quotes are always present and server configuration does not matter). Rather than messing with this for all WP core it makes much more sense to simply strip slashes in your code on your own variables, … Read more

Permission error on plugin save

Its stored in a single file called quote.php Assuming that means that your plugin is stored in wp-content/plugins/quote.php, then the problem is that your code is hard-coded to submit to wse140202.php— presumably you cribbed some code from another question here. In other words, this line: add_menu_page(‘Quotes Settings’, ‘Quotes Styling’, ‘manage_options’, __FILE__, ‘dw_styling_quotes_settings’); Registers a page … Read more