• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Adding code to posts only

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding code to posts only

This topic is: not resolved

Tagged: is_singular

  • This topic has 5 replies, 3 voices, and was last updated 9 years, 9 months ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 13, 2016 at 2:51 am #183503
    redcarcs
    Member

    I'm looking to add code to the bottom of my posts to show comments from Ajax Comments plugin for logged on users only, the plugin code is below;

    <?php if(function_exists('display_saic')) { echo display_saic();} ?>

    What additional code is needed and Where do I place it?

    Thanks

    April 13, 2016 at 3:50 am #183505
    Brad Dalton
    Participant

    Use the

    genesis_entry_footer

    hook with the

    is_singular('post'))

    conditional tag in your child themes functions file.


    Tutorials for StudioPress Themes.

    April 13, 2016 at 4:11 am #183506
    redcarcs
    Member

    Thanks, not being a coder not sure of full code to place in functions.php

    April 13, 2016 at 6:37 am #183514
    Brad Dalton
    Participant

    Link to your site please.

    Here's some examples of custom functions

    See the example under this sub heading Plugin Template Tag in Custom Function


    Tutorials for StudioPress Themes.

    April 13, 2016 at 7:37 am #183517
    jlknauff
    Member

    Try a plugin called Genesis Simple Hooks. You won't need to mess with any coding.

    April 13, 2016 at 7:38 am #183518
    Brad Dalton
    Participant

    You still need to add the conditional tag.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble