get_option and list of options

Options are for general settings not specific to a post. To get the name of the author of a post, you will need to first get the ID of the author from the $post object and then use that to create a $user object from which the name can be retrieved. Example code: global $post; … Read more

problem with get_option in dashboard

The problem is your value=”” attribute, for example <textarea value=”<iframe>”> is invalid HTML, and the browser will do its best to try and fix the markup. That’s why you’re getting strange results So instead, remove the value attribute. You’ll also want to escape with esc_textarea to prevent malicious code breaking out of the text area

How to save user meta on custom admin page

update_user_meta($current_user->ID, ‘description’, $_POST[‘user_description’]); in the form processing function will save the bio. I would keep the form action on the same admin page. As for data validation, I don’t see what there is to validate in the first place. It’s just a string – not an email, address or the like that needs to be … Read more

Is there any other place – besides a theme, a plugin, or a mu-plugin – that an option page might conceivably be used?

Unless you are working on WordPress core development you should not be writing anything but a: Theme Child Theme Plugin Mu-Plugin Drop-In For the last two see: http://hakre.wordpress.com/2010/05/01/must-use-and-drop-ins-plugins/ I am out on a limb a little bit here but I think that is the exhaustive list, with the first three by far the most common.

update a value in wordpress wp_options

What you are looking at is serialized data– possibly multiple bits of serialized data as @Rarst noted. The Options API will serialize and unserialize automatically so all you need to do is: $data = get_option(‘optionkey’); // $data will be unserialized into whatever data type it was originally, object, array, etc // manipulate your data with … Read more

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