Linking Plugin Files to WP
You need to include the “capability” to use $wpdb in your page. Include this in your page and see what happens. <?php $path = $_SERVER[‘DOCUMENT_ROOT’]; include_once $path . ‘/wp-load.php’;
You need to include the “capability” to use $wpdb in your page. Include this in your page and see what happens. <?php $path = $_SERVER[‘DOCUMENT_ROOT’]; include_once $path . ‘/wp-load.php’;
You just need to determine the handle of the script that they are enqueueing, and you can dequeue it yourself and prevent it from being loaded. I downloaded the plugin and had a look, my guess is (I haven’t tested) that the lightbox script is jquery.fullscreen-0.4.1.js, which gets loaded on line 2448 of photo-gallery.php function … Read more
Multiselect value in wp_query
At the top of the api.php page before the class JSON_API line add the following code: add_action( ‘wpmu_new_blog’, ‘wpse_set_defaults’ ); function wpse_set_defaults( $blog_id ) { global $json_api; switch_to_blog( $blog_id ); // set the default controllers here $required_controllers = explode(“,”, “categories,posts,user,attachments”); $id = ‘json_api_controllers’; $available_controllers = $json_api->get_controllers(); $active_controllers = explode(‘,’, get_option($id, ‘core’)); $action = “activate”; foreach … Read more
Send and email to [email protected] and they can help you try to get in touch with the original plugin author. If the author is no where to be found and you can show that your able to keep it up to date it is possible that you could be allowed to take it over.
If you are trying to alter your main query have a look at query_posts(). You should be able to achive all you need using query parameters without writing custom queries: WP_Query->orderby & WP_Query->date_query.
Your shortcode action is wrong/incomplete: function ss_register_shortcodes() { add_shortcode( ’embed-slideshow’, array( $this, ‘ss_shortcode_embed_slideshow’ ) ); } Since you are doing OOP, you have to use the class method in object context (or static).
1. You should NEVER work on a live site Just setup a local installation of WAMP or MAMP and do your testing there. This has a lot of benefits: You can’t break a live site You don’t need to upload changed files It runs faster as everything is local and doesn’t go trough the internet … Read more
Different plugins activated online and offline
You will need to increase your media upload limits in your php.ini file or ask your host to increase them. You can also increase the limits via your functions file or .htaccess file. Installing a video plugin won’t increase the limits. You can also use the native video player already included in WordPress without the … Read more