Conditional Author Box display for one specific user

Posted in: Newspaper
Post count: 64

Hello,

I am requesting assistance with a custom single post template configuration in the TagDiv Composer: https://forcenews.pl

Goal: We need the “Single Post Author Box” element (the author bio section at the end of the article) to be displayed only for posts published by one specific, designated user account on our website.

Current Situation:

The “Single Post Author Box” element is globally disabled in our standard Single Post Template.

We want it to remain hidden for all standard editorial articles.

Question/Problem:

We need to add the “Single Post Author Box” block to the existing single post template in TagDiv Composer, but it must appear conditionally.

Is there a built-in “Display Condition” feature within the TagDiv Composer for a single element (block) that allows us to set a rule based on the Post Author (e.g., specifying the Author’s ID or Username) to make the block visible?

Is there a solution that does not require duplicating the entire post template? Please advise on the best implementation path.

Thank you for your prompt assistance!

Post count: 35449

Hi,
I understand what you want to achieve, unfortunately, there is no such option.
Maybe what you can try would be a JavaScript code that checks if it is the right author on the author box and if not, to set a display none for the Author Box.
Thank you!

Post count: 64

thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.