Looking for Gallery Plugin [closed]

Below are some possible plugins for your need: NextGen Gallery – This includes both a zip importer/batch file uploader with option to assign a subfolder for the zip/batch of images and a folder importer feature. The plugin is well maintained, but may require one of the premium version extensions to include all the gallery importer … Read more

Deactivation Hook does not remove database

function my_plugin_remove_database() { global $wpdb; $db_table_name = $wpdb->prefix . ‘sandbox’; // table name $sql = “DROP TABLE IF EXISTS $db_table_name”; $rslt=$wpdb->query($sql); } register_deactivation_hook( __FILE__, ‘my_plugin_remove_database’ );

WordPress permissions error with admin account

How can I get around this? Talk to the administrator. If you’re supposed to have access to complete updates and you can’t do your job, he’s doing something incorrectly – don’t compound the problem by trying to find a backdoor into the file system when you should be welcome at the front door.

Get all the URLs of the pages that uses a specific shortcode

Solution that I’ve found: $pages = get_pages(); $pattern = get_shortcode_regex(); foreach($pages as $page) { if ( preg_match_all( “https://wordpress.stackexchange.com/”. $pattern .’/s’, $page->post_content, $matches ) && array_key_exists( 2, $matches ) && in_array( ‘my_shortcode’, $matches[2] ) ) { echo $page->post_title . <br />; } }

Is there a plugin or a way in the wordpress that would let us have different versions of a post or page accessibe to users?

It sounds like you are after adding Wiki functionality to your WordPress site(but with editing restricted to author). See this write up on the topic (complete with revision links above comments). The above article uses the Post Revision Display plugin which hasn’t been updated for a while. However, as he is an tech writer and … Read more

DB Query not working in Plugin

Looking at the SQL query in $createSQL, ENGINE=InnoDB” . $wpdb->get_charset_collate() . ” AUTO_INCREMENT=1; yields to: Error in query (1286): Unknown storage engine ‘InnoDBDEFAULT’ To fix it, add a space between the ENGINE=InnoDB (the storage engine) and ” . $wpdb->get_charset_collate() (the charset). You have defined the column id as AUTO_INCREMENT, but the column is not a … Read more

Image tooltip enable/disable

This code snippet is almost working. on mouseenter title attribute is hidden on mouseleave title attribute restores on click title attribute restores on lightbox overlay exit it fails When the lightbox closes it fails to restore the title attribute. Clicking a second time on the image does restore the image title. What is missing in … Read more