installed WordPress but can’t upgrade or add plugins due to webdav https?
installed WordPress but can’t upgrade or add plugins due to webdav https?
installed WordPress but can’t upgrade or add plugins due to webdav https?
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
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
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
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
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
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
As long as there have been no changes to the live since since you took the backup of it to work on in your dev environment, then yes you can replace the existing database with yours. You do not need to activate the new theme on the live server – the currently active theme is … Read more
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
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