Users problem (multi-author plus multisite)

It appears that at some point the plugin Simple Local Avatars broke things. Disabling it solved my problem. I now have a user that I need to find another avatar solution for, as he doesn’t have a Gravatar and using his other WordPress blog email address didn’t import his photo.

Second comments section for one post/page

When you add/display comments you could use a different comment_type $data = array( ‘comment_post_ID’ => 1, ‘comment_content’ => ‘content here’, ‘comment_type’ => ‘comment_type_a’, ); wp_insert_comment($data); This means you can query comments by comment_type depending on where you want to show them.

Adding an image to a non existing post

I am not sure this answers your question directly, but as technical trivia — WordPress actually creates a posts as soon as you open editor, with auto-draft status. This is being used precisely to have a target for things like attachments and custom field before it is actually saved by user. So when user “saves” … Read more

Display an author’s posts on his own author page

You can simply use the default author.php page to do this. If you don’t have one, make a copy of index.php and rename it author.php Now, use pre_get_posts to include your custom post type in the author pages. This code goes in functions.php function cpt_on_author_page( $query ) { if ( !is_admin() && $query->is_author() && $query->is_main_query() … Read more

WP_Query: Mixing category__in and tag__in together

Yes, that is possible. All Taxonomies are stored in the db in the wp_term_taxonomy table. The following are all listed as taxonomies category post_tag link_category post_format and Custom taxonomies All terms belonging to these taxonomies are stored in the wp_terms table. Tags are terms of the post_tag taxonomy, and all “categories” that you create in … Read more