Nav Menu meta failing to import

The problem was ultimately with the WordPress Importer plugin. I could hack at it (and have suggested an improvement to the developers) but I am going to got around this by writing a custom Importer of my own. It isn’t the most convenient (to re-upload the .XML file) but in cases where users have complex … Read more

How to make dynamically-generated content searchable in WordPress?

The wp_posts table has a post_content_filtered column that plugins can use to cache expensive post content filters. The idea is that when you display the page, you don’t read post_content but you read post_content_filtered. This is nice, but it won’t solve your search problem because WordPress by default only looks at post_content and post_title. You … Read more

custom XMLRPC method plus authentication of user & WooCommerce order

I sent it to you on Twitter, but here it is again. I made this little class to help me do XML-RPC faster. abstract class MZAXMLRPC { protected $calls = Array(); protected $namespace = “myxmlrpc”; function __construct($namespace){ $this->namespace = $namespace; $reflector = new ReflectionClass($this); foreach ( $reflector->getMethods(ReflectionMethod::IS_PUBLIC) as $method){ if ($method->isUserDefined() && $method->getDeclaringClass()->name != get_class()){ … Read more

Make Categories and Tags required in admin

The JavaScript function is a bit wrong, its catching the form submit instead of the button click change it to this: function my_publish_admin_hook(){ if(is_admin()) { echo” <script language=\”javascript\” type=\”text/javascript\”> jQuery(document).ready(function() { jQuery(‘#publish’).click(function() { var form_data = jQuery(‘#post’).serializeArray(); form_data = jQuery.param(form_data); var data = { action: ‘my_pre_submit_validation’, security: ‘”;echo wp_create_nonce( ‘pre_publish_validation’ ); echo”‘, form_data: form_data }; … Read more

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