Is there going to an issue running different features of WP site in different subdomains?

Different sites can have different plugins enabled, different sets of users, etc. That’s built in to Multisite. The “LMS talking to ecommerce” part will probably require you (or someone you hire) to write some code — a head start might be to look at switch_to_blog() and restore_current_blog(), and indeed the list of Multisite functions. (Or … Read more

Put folder in theme via plugin

You may be thinking about this in the wrong sense. What are you using the CSS and images for? You should be using wp_enqueue_script/wp_register_script for css and the images would be specific to your use case. You can just use PHP built in functions to copy files: http://www.php.net/manual/en/function.copy.php

passing ‘&’ in return function of add_filter

First thing is you are returning jQuery through PHP without script tag, so you should at the least be using this: add_filter(‘the_content’, ‘my_drama_func’); function my_drama_func () { return “<script>function getthrough() { jQuery.ajax({ url: ‘ajax/ajax.php’, type: ‘POST’, data: ‘url=”+url+”&un=0&pretty=1&mega=0&click=true’, beforeSend: function(b) {..snip..}, error: function(e) {}, success: function(s) {} }); }</script>”; } I hope you understand by … Read more

Action hook “wp_insert_post” works but not for last imported post

The ‘wp_insert_post’ action is fired for each post that is inserted and passed the ID of the inserted post to the callback function, so I think your $wpdb query is unnecessary – in fact, I think you’re running the “custom function” portion for all published posts, not just the inserted post (which may or may … Read more

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