To display specific content for an admin only in WordPress can be done easily, all you need to do is just write an if else statement with the same parameter.
In this example I will show you how to display simple stats from WordPress and display it on the front page.
How To Display Content for Admin Only
In the display content for Admin only code above what we have done is checked if the current user is logged in and has a level_10, if the user has this level, the content will be displayed. if the user’s profile is below or they are logged out, then nothing will be displayed.
It’s easy right?