What’s causing this error? “Warning: Invalid argument”
This is most likely caused by a plugin. Deactivate them all, and reactivate one by one.
This is most likely caused by a plugin. Deactivate them all, and reactivate one by one.
No, that’s not possible. You can find a list of providers for embeddable coontent in wp-includes/class-oembed.php: ‘#https?://(www\.)?youtube.com/watch.*#i’ ‘http://youtu.be/*’ ‘http://blip.tv/*’ ‘#https?://(www\.)?vimeo\.com/.*#i’ ‘#https?://(www\.)?dailymotion\.com/.*#i’ ‘#https?://(www\.)?flickr\.com/.*#i’ ‘#https?://(.+\.)?smugmug\.com/.*#i’ ‘#https?://(www\.)?hulu\.com/watch/.*#i’ ‘#https?://(www\.)?viddler\.com/.*#i’ ‘http://qik.com/*’ ‘http://revision3.com/*’ ‘http://i*.photobucket.com/albums/*’ ‘http://gi*.photobucket.com/groups/*’ ‘#https?://(www\.)?scribd\.com/.*#i’ ‘http://wordpress.tv/*’ ‘#https?://(.+\.)?polldaddy\.com/.*#i’ ‘#https?://(www\.)?funnyordie\.com/videos/.*#i’ ‘#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i’ ‘#https?://(www\.)?soundcloud\.com/.*#i’ ‘#https?://(www\.)?slideshare.net/*#’ ‘#http://instagr(\.am|am\.com)/p/.*#i’ Google is not in that list, so you have to ask the administrator.
AJAX requests (which you imply you are using but do not explain/demonstrate) do not load your active theme, which is where functions.php resides (unless you were referring to a functions.php file that you created in your plugin’s directory). As such, your call_user_func() is likely failing as the function that you are attempting to call is … Read more
The plugin uses cURl direkt instead of WordPress’ built in HTTP class. If your sever does not support cURL, the plugin can not work and you got this message. Deinstall the plugin and use another one. Or replace the curl_it() function within the plugin with something stable. Update The workaraound: Open the plugin file youtube-sidebar-widget.php … Read more
My friend Ewout just answered this question a couple months ago on stackoverflow. Add the following to your theme’s functions.php file: add_filter (‘add_to_cart_redirect’, ‘redirect_to_checkout’); function redirect_to_checkout() { global $woocommerce; $checkout_url = $woocommerce->cart->get_checkout_url(); return $checkout_url; } Here’s a link to his answer: https://stackoverflow.com/a/15597933/1543310
Since WooCommerce orders and products are actually custom post types, using that importing tool will only transfer limited amount of data. To transfer the order details as well, you need to use phpMyAdmin to import the following two tables to your new site’s database wp_woocommerce_order_itemmeta wp_woocommerce_order_items
The first step is to create Networks inside a Multisite Network. And it can be done with: Networks+ This plugin provides the interface to set up another network of sites within the install you already have. You may choose to run this additional network off a different domain entirely or a subdomain – it’s very … Read more
Use a rewrite rule in your .htaccess: RewriteRule ^path-to-images/ajax-loader\.gif /path-to-replacement.gif [L] Make sure to set this above the WordPress rules.
I agree with Wyck’s comment. If I can upload files, game over. If I couldn’t upload to mu-plugins chances are that I could upload, and overwrite, the theme’s functions.php or Core files instead. Any of those options work as well or better than a mu-plugin file would. The “also modify the database” part is irrelevant … Read more
What you are describing can be accomplished with Featured Image and a simple wp_query call. These are very core elements of a WordPress theme. You’d need to define a size with add image size, and then call it up using the aforementioned post_thumbnail. Your loop might look something like this: $args = array( ‘post_type’ => … Read more