problems with wordpress and php version 5.3.3-1

The latest and greatest php version is always the recommended version. Seriously. All core devs use it when developing trunk. Only a few bother to test older php versions, as can be seen by the occasional ticket opened related to php4 or php5.x incompatibility. The same cannot be said by plugin authors, however… As you … Read more

WordPress Plugin Dev: Using array for WP options

If you are using the Settings API then you don’t have to save the options, that’s done for you. So when using an array to store the options your validation function should get an array of all existing options, update only the changed and return that array. Something like this: function my_settings_option_validate( $input ) { … Read more

What’s the order of loading wordpress elements?

WordPress load is complicated process and hard to grasp in full. The very basic overview would be like this. What you should do for starters – think in specifics. A lot of common tasks (adding scripts, using hooks, etc) are standardized technically or conventionally. So go by task – decide what you want to do … Read more

How to display usermeta on front end of site

<?php $user_id = 9; $key = ‘last_name’; $single = true; $user_last = get_user_meta( $user_id, $key, $single ); echo ‘<p>The ‘. $key . ‘ value for user id ‘ . $user_id . ‘ is: ‘ . $user_last . ‘</p>’; ?> More information here – http://codex.wordpress.org/Function_Reference/get_user_meta

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