How customizable is a self-hosted WordPress blog compared to a Blogger blog?

The front-end customization options in self-hosted WordPress are absolute. You can edit whatever you want in PHP/HTML templates and CSS style sheets. While WordPress comes with single theme (“Twenty Ten” at moment) the availability of third party free and paid themes for it is huge. See: Where can I download WordPress themes from? for good … Read more

Filter posts/pages by user_role array

You’ve used LIKE comparison method, that means every similar expression will be matched, including exact string and similar string. If you want to match exact string, you should use = operator. Example: global $current_user; $user_roles = $current_user->roles; $user_role_query = array(); for ($i=0; $i < sizeof($user_roles); $i++) { $user_role_query[] = array( ‘key’=>’attribution_roles’, ‘value’ => $user_roles[$i], ‘compare’=>’=’ … Read more

Comparison operator

string(5) “>=” concerns me. It should be string(2) should it not? This feels like you’re actually getting &gt;= instead of >=. If you are doing a var_dump into the basic HTML body, it will encode what you see. View Source or wrap your var_dump in a <pre> tag, and you should see what’s up. Try … Read more

Compare date of user’s last posts

According to the codex, you’re manipulating get_most_recent_post_of_user()‘s returned value the wrong way. get_most_recent_post_of_user() directly returns the post_date_gmt among blog_id, post_id, and post_gmt_ts. Anyway, if you want to get the 2 last posts of a specific author, use WP_Query instead, which should by default get last posts in the order you need. $author_id = $author_id; $args … Read more