Multiple content areas per page

This sounds to me like a perfect use of Advanced Custom Fields “flexible content” feature to me. Flexible content fields allow you to define multiple layouts, and then add them to a page or post one by one, in any order or combination you need. Each layout can be a combination of text fields, images, … Read more

Win7 Dev Environment

I’d recommend setting up XAMPP. It will allow you to run an Apache/PHP/MySQL environment on Windows. You shouldn’t have any problem moving things over from your local XAMPP setup to a LAMP setup with your host.

How to filter get_avatar?

The Original Poster was missing the pair priority, parameters when declaring the filter hook: add_filter( ‘get_avatar’, array( $this, ‘get_avatar’ ), 10, 5 ); Being 5 all the parameters the callback function can use: public function get_avatar( $avatar, $id_or_email, $size, $default, $alt ) { return $avatar; }

Capability to edit own posts and not others

The capabilities that you are trying to restrict are delete_others_posts edit_others_posts Apart from Super Admin and Administrator, the only Role that have these permission is Editor. So, removing these capabilities from Editor should accomplish this. /** * Remove capabilities from editors. * * Call the function when your plugin/theme is activated. */ function wpcodex_set_capabilities() { … Read more

Can I disable the auto complete?

I have a solution I tested, and it works. The autocomplete for the tags is currently done via an ajax request to the file admin-ajax.php. The solution I would suggest is to block the processing of the request so that it does not return any result. I would do : function no_tag_suggest() { if( DOING_AJAX … Read more

WP Super Cache separate cache for mobile

There are several ways to handle mobile devices and doing it inside of single theme is builky and hard to maintain (as for me at least). More commonly this seems to be accomplished with separate templates or separate mobile-specific theme. I don’t know about WP Super Cache specifics because I hadn’t used it extensively. Plugin … Read more

How to add checkbox and radio button in Profile Page

You are missing the “checked” value for the inputs <input type=”checkbox” name=”language” <?php if (get_the_author_meta( ‘language’, $user->ID) == ‘Mandarin’ ) { ?>checked=”checked”<?php }?> value=”Mandarin” /> Mandarin<br /> Also, the usermeta is dealing but your are checking for $_POST[‘gender’] Finally, you should have one usermeta for English and other for Mandarin, as they are not mutually … Read more