WooCommerce store with ~30,000 products [closed]

I hate to mention this on WordPress.Stackexchange, but I would go with using Magento in place of WordPress. I love WordPress and use it on almost every website that I build, but it was not specifically made for e-commerce. Magento handles just about everything better in regards to e-commerce. I only tend to use WordPress … Read more

run silex or slim with wordpress

There’s little that you can do with the Silex server that can’t be done through WordPress but it takes a bit of effort to get WP to respond to AJAX calls. The first step is to make the call available through AJAX. This requires adding a line to your functions.php file similar to add_action(‘wp_ajax_my_ajax_call’, ‘onno_update_my_ajax_call’); … Read more

Syntax highlighting for post/page editor [closed]

I am using SyntaxHighlighter Evolved by Viper007Bond, works great! http://wordpress.org/extend/plugins/syntaxhighlighter/ After I gave this answer yesterday, I read a recent post by Konstantin Kovshenin over at theme.fm, which gives you all the different possibilities on how to add syntax into your Posts/Pages: http://theme.fm/2011/07/working-with-code-in-wordpress-posts-985/

How to tell if a plugin is multisite compatible?

There are two types of multisite compatibility: Passive compatibility: doing nothing multisite specific, just works without breaking anything. Active compatibility: changing or extending multisite specific behavior. I guess you are out for 1. See my slides from WordCamp Prague 2015 for the second part. Plugins that do not say anything about multisite should not be … Read more

Restricting a Plugin to Only Load its CSS and JS on Selected Pages?

Styles and scripts are always set up by the functions wp_enqueue_script() and wp_enqueue_style(), which have to be tied to a particular action hook in order to function. I took a peek inside Contact Form 7, and it looks like it’s using action tags of wpcf7_enqueue_scripts and wpcf7_enqueue_styles to add them to the wp_print_scripts and wp_print_styles … Read more

How to not allow users to create new tags, but allow to them to use existing ones

You can hook onto pre_insert_term, check the taxonomy and whether or not the user has the specified role as follows: function disallow_insert_term($term, $taxonomy) { $user = wp_get_current_user(); if ( $taxonomy === ‘post_tag’ && in_array(‘somerole’, $user->roles) ) { return new WP_Error( ‘disallow_insert_term’, __(‘Your role does not have permission to add terms to this taxonomy’) ); } … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)