- Views133 times
- Answers6 answers
I wonder if you could help me with this.
I am trying to display a custom block on the single-page only if the current user is the author.
I created a shortcode for the contents of the block and used a static code block.
The problem is the block header (title/label) always shows – no matter who is viewing the listing.
How can I make it so that the whole block is not loaded if the current user is not the author?