How to add multiple checkbox elements to media attachments?

Like @Bainternet said, it is the same thing. Taking the code from the question you linked to, you can do it like this: function filter_attachment_fields_to_edit( $form_fields, $post ) { $foo = (bool)get_post_meta( $post->ID, ‘foo’, true ); $bar = (bool)get_post_meta( $post->ID, ‘bar’, true ); $form_fields[‘foo’] = array( ‘label’ => ‘Is Foo’, ‘input’ => ‘html’, ‘html’ => … Read more

How to use get_option() without any filter?

I’m guessing that you are using language tags around ‘polish textdeutschland text’ i.e. <!–:pl–>polish text<!–:–><!–:de–>deutschland text<!–:–> but that they got ignored when you posted your answer. I’m pretty sure what you need to be doing is using the __() (which returns the translation for use in php code) and _e() (echo’s direct to screen) wordpress … Read more

wp_dropdown_pages() in theme admin page

grrr.really annoying, 2hrs and then i found it myself $args = array( ‘echo’ => 1, ‘selected’ => $home_galleryselect, ‘name’ => ‘theme_option[home_galleryselect]’); wp_dropdown_pages($args);

Custom style on profile options page

It works on a standard profile page (your profile / Profile) without other plugins installed. Other plugins may affect the overall result. I think code can be improved, if some one knows how please give it a go. function better_profile_page($buffer) { global $pagenow; if ($pagenow == ‘profile.php’ || $pagenow == ‘users.php’ || $pagenow == ‘user-edit.php’) … Read more

WordPress (+WPMU) Import/Export ALL settings?

Answering another Question, I pointed to this tutorial: Creating a Simple Backup/Restore Settings Feature Lee Pham on Jun 22nd 2012 In this tutorial, I’m going to show you how to create a simple backup/restore feature for your WordPress blog. With this feature, you can backup all options to another place, that you can restore them … Read more

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