adding image in the header of my dev widget

From your post what i understood is u need to show images saved in your plugin folder.if yes then you can go with plugin_url to link images in a plugin directoy without specifying the plugin folder name. Example: <?php echo ‘<img src=”‘ . plugins_url(‘/images/header-background.png’, __FILE__) . ‘” > ‘; ?> The ouput will be like … Read more

ajax request not returning the result

You are not using the WordPress ajax API correctly, see Ajax in Plugins. Tha action parameter defines a function callback for wp_aja_* action hook, not the name of a file: <?php add_action( ‘wp_ajax_my_action’, ‘my_action_callback’ ); //Uncomment next line if you want the ajax action enable in the frontend //add_action( ‘wp_ajax_nopriv_my_action’, ‘my_action_callback’ ); function my_action_callback() { … Read more

Show all posts of all categories but excluding a category on custom blog page with pagination of my theme

If you take a look at the category parameters of WP_Query, you’ll see that you can use either cat=-12 or category__not_in’ => 12 to exclude a category with ID 12 in your custom query. I just also want to point out a few things here. showposts is depreciated, you should be using posts_per_page. Also ‘showposts=6’ … Read more

Retrive images from the_content()

There are essentially three criteria here: do images belong to the site (are WP attachments) are images attached to this post are images used in this post This has side effects, like: images used in post are not necessarily attachments post’s attachments aren’t necessarily used in that post So the only reliable way to produce … Read more

using jquery serialize in ajax operation for plugin

Provided that your server receives data in the form of a string which it should if you’re using the jQuery serialize() function. It will be something like: name1=value&name2=value&name3=value You just need to parse the string into an array as follows: $parameters = array(); parse_str($_GET, $parameters); See the following for more information: http://www.php.net/manual/en/function.parse-str.php

How do I replace the e-mail form to functional e-mail subscription? [closed]

For sending mass emails I wouldn’t recommend sending them from your email program nor from WordPress; instead, I would recommend a third-party service that specializes in sending emails – in particular, I usually recommend MailChimp as they offer a free subscription level that is usually sufficient. They also provide a easy-to-use WP plugin that allows … Read more

Why tinyMCE.editors doesnt work on tinyMCE

You could provide your editors textarea’s ID to get the content of the tinyMCE, also you should get the contents of the saved post meta and set it as the text of your editor element to display the value saved before. You could use the following code as a reference, <?php function taggr_meta_function($post){ $my_editor = … Read more