Reply To: Show/Hide element per category

Home Forums Support Show/Hide element per category Reply To: Show/Hide element per category

#228642
Jan

Hi there,

I would also like to hide the author and date on single posts or post categories.

I tried the code above and got the following error:

Warning: Missing argument 2 for add_category_to_single() in /home/eersdiek/public_html/wp-content/themes/generatepress_child/functions.php on line 10
class=”single single-post postid-1921 single-format-aside logged-in admin-bar no-customize-support fl-builder post-image-below-header post-image-aligned-center secondary-nav-above-header secondary-nav-aligned-right sections-no-sidebars sticky-menu-no-transition navigation-logo sticky-enabled menu-logo menu-logo-enabled has-dashicons leiding-elke-dag generatepress full-width-content no-sidebar nav-below-header fluid-header separate-containers active-footer-widgets-0 nav-aligned-left header-aligned-center dropdown-hover”>

Is there an easier way of doing this?

Regards,
Jan