Hide author on blocks with certain categories

Posted in: Newspaper
Post count: 64

Hi,
I want to hide Authors from certain Categories on Blocks, which is not possible by CSS because the categories from Blocks get not stamped. Actually the user @fbengo had a tutorial here for Newsmag, but Im using Newspaper and I tried to apply it on “td_module_single_base”. But nothing happened.
-> https://forum.tagdiv.com/topic/hide-author-on-posts-on-some-categories-and-a-few-more-issues/

Anyone has an idea or help on that? To the developers: Either make the category class stamp or implement this in a future update, this seems to be a feature lot of people demanding..

Thanks.

Post count: 23312

Hello kognitoweb,

If you want to hide the authors from your posts only for your blocks with the certain category, please check the following topic here -> https://forum.tagdiv.com/topic/hide-authors-by-id/ and try to implement the method for your side. Also, please notice that you want to hide only for blocks, you have to edit only the td_module.php file. Also, there you have to add the in_category() condition which checks if the posts are or not in your desired category, using the category ID. For more references about this condition, please check here -> https://developer.wordpress.org/reference/functions/in_category/ Please notice that is not a simple task and this addresses only for advanced users. If you cannot accomplish these settings, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thank you for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.