Looking for a related post plugin which slides-in like the one at inc.com does [closed]

The plugin I think you’re looking for is http://wordpress.org/extend/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/ “Just like the NYTimes button, upPrev allows WordPress site admins to provide the same functionality for their readers. When a reader scrolls to the bottom of a single post, a button animates in the page’s bottom right corner, allowing the reader to select the next available … Read more

Updating WordPress [closed]

First Never modify the database options directly. Instead, to deactivate all of your plugins, FTP to your site and rename the /plugins directory as /plugins-1 or something along those lines. WordPress will automatically deactivate them the next time you try to load the site, then you can change the name back to /plugins. Troubleshooting There … Read more

Enqueue scripts in the footer

From http://codex.wordpress.org/Function_Reference/wp_register_script: <?php wp_register_script( $handle, $src, $deps, $ver, $in_footer ); ?> This means you need to add the $deps and $ver values to wp_register_script() in order to set $in_footer. Like this: wp_register_script( ‘justifiedGallery’, plugins_url(‘js/jquery.justifiedGallery.min.js’, __FILE__), false, // or array(), or array(‘jquery’) if this depends on jQuery ‘1.0’, // or your plugin version, or the version … Read more

Simple WordPress function / plugin to redirect a site

While the plugin might solve your problem you could try something direct with WordPress API: add_action( ‘template_redirect’, ‘wpse_142191_all_redirect’ ); function wpse_142191_all_redirect() { if ( !is_user_logged_in() ) { wp_redirect( ‘http://other-site.com’, 301); exit; //always die or exit after redirect } } Be careful with it,this will redirect the whole site on the home page of other site. … Read more

How to send email when my plugin is activated?

I offer you an idea that I have already used something like this. I wanted to know the sites that my plugin uses, I created a cron job allow me to send me an email every week : add_action(‘init’, function() { $time = wp_next_scheduled(‘dro_cron_hook’); wp_unschedule_event($time, ‘dro_cron_hook’); if (!wp_next_scheduled(‘dro_cron_hook’)) { wp_schedule_event(time(), ‘everyweek’, ‘dro_cron_hook’); } }); add_filter(‘cron_schedules’, … Read more

Move specific javascript to the footer

It is generally not recommended to put move javascript files to the footer, especially WordPress dependencies. WordPress and plugins require and expect dependencies to be in the header and things can go awry if they aren’t. There are workarounds for this, but in many cases if you do move things to the footer and a … Read more