Display Author name PHP (Selfmade Plug-IN)

Your $my_post array contains ‘post_author’ => $user_ID, but $user_ID isn’t defined. According to WP codex, get_currentuserinfo is deprecated, and should be replaced with wp_get_current_user. But in this case you want the ID, so a better option would be get_current_user_id So if you replace this line: get_currentuserinfo(); With: $user_ID = get_current_user_id(); You should be in business.

co-authors plugin – inline listing

solved using for loop instead of foreach: function inl_users() { if ( function_exists( ‘get_coauthors’ ) ) { $coauthors = get_coauthors(); for ($i = 0; $i < count($coauthors); $i++){ $autArray[] = ‘<a href=”https://wordpress.stackexchange.com/questions/404167/. get_author_posts_url( $coauthors[$i]->ID ) .”>’ . $coauthors[$i]->display_name . ‘</a>’; } echo implode(“, “, $autArray); } does anoyone know why?

Changing url of author page

Yes, if you really want to just change it directly in the database, you are looking for the user_nicename field (column) in the users table. This is the value that WP uses for author archive URLs.

Assign author to category and not only posts

By default WordPress does not support an author on categories or any other taxonomy as can be seen in the database structure. You can certainly add that association through taxonomy term meta data, but you will of course be responsible for all management and display of that custom data (unless you can find a plugin … Read more

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