Skip to main content Skip to footer
  • Home
  • About
  • Services
  • Work
    • Web Development
    • Portfolio
  • Contact
  • Blog
    • ACF
    • Beaver
      • Beaver Builder
      • Beaver Theme
      • Beaver Themer
    • Genesis
    • jQuery
    • macOS
    • WordPress
    • WooCommerce
  • Home
  • About
  • Services
  • Work
    • Web Development
    • Portfolio
  • Contact
  • Blog
    • ACF
    • Beaver
      • Beaver Builder
      • Beaver Theme
      • Beaver Themer
    • Genesis
    • jQuery
    • macOS
    • WordPress
    • WooCommerce

Remove Comments Based on Categories in Genesis

December 13, 2015| 0 comments

You can remove and control the Comments section based on what Category a post is set to in Genesis by conditionally removing an action based on the category.

So in the code snippet above I want comments only on a certain category which has the id of 38, so the code says that is the post is not in the category of 38 then remove the comments template.

 

Categorised

  • comments
  • genesis

Related Posts

  • Remove Post Info and Meta in Learn Dash Custom Post Types

  • Learndash Login Redirect

    Add LearnDash Custom URL Login and Logout Custom Redirects

  • Bricks Builder Spinning Icon

    Bricks Builder Add Spinning Icon to Ajax Add to Cart Button on WooCommerce Product Archive

  • Cloudflare Custom Rules

    Block xmlrpc.php requests from Cloudflares firewall using Custom or Rate Limiting Rule

  • Cloudflare Fail2ban Serverpilot

    Syncing RunCloud and Cloudflare firewalls for fail2ban IPs

  • Cron Wordpress

    Set up WordPress cron to run via server cron in cPanel, Cloudways and RunCloud

  • Pre Get Posts Display

    Change Number of Posts Displaying on a Custom Post Type (CPT) Archive Page

  • Bricks Builder Menu Label

    Add Menu Label Text on Bricks Builder Nav Menu Element

Related Posts

  • Remove Post Info and Meta in Learn Dash Custom Post Types

  • Learndash Login Redirect

    Add LearnDash Custom URL Login and Logout Custom Redirects

  • Bricks Builder Spinning Icon

    Bricks Builder Add Spinning Icon to Ajax Add to Cart Button on WooCommerce Product Archive

  • Cloudflare Custom Rules

    Block xmlrpc.php requests from Cloudflares firewall using Custom or Rate Limiting Rule

Leave the first comment (Cancel Reply)


  • Get Beaver Builder Now!
  • ACF apache archive beaver beaver builder beaver theme beaver themer bootstrap cache category checkout cpt css customizer filter flexbox form genesis header homebrew htaccess iconfonts image javascript jquery loop markup menu mysql php pre_get_posts repeater runcloud serverpilot shortcode slider taxonomy template twentytwelve ubuntu UI/UX while widget woocommerce wp-cli

  • Donate

    If you found something that helped you out and would like to make a donation, that's great, click below

  • PowerPack Beaver Builder Addon

Our location

We are based in the Northern Beaches of Sydney and work with both local and overseas based clients.

Check us out

Work with us

Let us know your website project requirements, see our services and use the contact form to get in touch to start the ball rolling.

  • Home
  • Blog
  • About
  • Services

© 2017 · NEIL GOWRAN · POWERED BY WORDPRESS, BRICKS, OPEN LITESPEED, CLOUDFLARE AND HOSTED ON RUNCLOUD AND RACKNERD