0

How can I be displayed in an article written by a writer in a text format only to the same author.

0

I came to a conclusion !

if ($current_user->ID == $post->post_author) 
| improve this answer | |
0

You can adjust following code in your theme files

$current_user = wp_get_current_user();

if (is_user_logged_in() && $current_user->ID == $post->post_author)  {
    echo 'YOUR TEXT FOR AUTHOR OF POST GOES HERE...!';
}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.