Javascript from Easy-Fancybox place into footer

You can ask the plugin author to update the plugin so scripts go in the footer rather than the header. Or you can look in the plugin code and see this: wp_enqueue_script(‘jquery.fancybox’, plugins_url(FANCYBOX_SUBDIR.’/fancybox/jquery.fancybox-‘.FANCYBOX_VERSION.’.pack.js’, __FILE__), array(‘jquery’), FANCYBOX_VERSION); What you can do is edit this yourself so that it enqueues in the footer or you can write … Read more

How do I attach an invoice PDF to an email in the Dukapress plugin for WordPress?

function dpsc_pnj_send_mail($to, $from, $name, $subject, $msg, $attachment = FALSE) { global $wpdb; $headers=”MIME-Version: 1.0″ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”; $headers .= ‘From: ‘ . $name . ‘ ‘ . $from . ” . “\r\n”; if ($attachment) { if ($dp_shopping_cart_settings[‘dp_shop_pdf_generation’] === ‘checked’) { $mail_attachment = array(DP_PLUGIN_DIR. ‘/pdf/invoice_’ . $attachment . ‘.pdf’); @wp_mail($to, … Read more

Importing csv file

if you use the PHP-myadmin, you should EXPORT an sql dump of ALL your tables, and then IMPORT the same sql. If I understand correctly (and maybe I am wrong) you try to import CSV into an SQL dump .. that will not work in direct sql dump. after you have the sql dump, use … Read more

Why may one avoid Jetpack plugin? [closed]

The most common complaint I’ve heard is that it’s bloated with too many plugins. You can try the Jetpack Lite plugin to avoid that however. http://wordpress.org/extend/plugins/jetpack-lite/ As for their business motivation, I can’t give a definitive answer. I’d venture to say it’s related to being a freemium service as they state in their FAQ: Jetpack … Read more

Problem with ajax plugin for refreshing posts

I think what’s happening is that the jQuery is not able to destroy the element because it is not wrapped in the .random-post li. Try adding that back in and see if it fixes your code. Also, just a note, you added a space in random-post-excerpt that was not there in the original.

Linked pages from plugin on front can’t see $wpdb

I would do something like this: <a href=”https://wordpress.stackexchange.com/questions/42287/?xp=<?php echo $row->BrExpress; ?>”> <img src=”https://wordpress.stackexchange.com/questions/42287/images/full_menu_icon.gif” alt=”See this store menu” class=”menuimg” /></a> And then to load the page when the link is clicked: function load_the_menu_page() { if(isset($_GET[‘xp’])) { global $wpdb; // retrieve database info here return $info; } } add_action(‘init’, ‘load_the_menu_page’); Note, this is just a sample. If … Read more