• 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

Help about Simple Hooks Plugin

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 › General Discussion › Help about Simple Hooks Plugin

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 7 years, 7 months ago by Genesis Developer.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 28, 2015 at 5:42 am #160711
    wparrow
    Member

    Hi
    I installed nrelated post plugin on my website and I want manual put the related post below the post content using Simple Hook plugin.

    The position I added the code is: genesis_entry_footer

    The short php code I get from Nrelated post plugin is: <?php zemanta_related_posts()?>

    But the problem is the related post now display both on home page and single post, I want it display on single post only. So I tried to add condition code like below:

    <?php 
    if ( is_single() ) {
     <?php zemanta_related_posts()?> 
    } else {
    }
    ?>

    But the code above is not working. Could you please help me fix this simple code

    Thanks for your help
    T

    July 28, 2015 at 6:32 am #160717
    Genesis Developer
    Member

    Try this

    
    if ( is_single() ) {
      zemanta_related_posts();
    }
    

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 28, 2015 at 7:25 am #160732
    wparrow
    Member

    Thank you very much for your help, it's working now

    July 28, 2015 at 8:20 am #160738
    Genesis Developer
    Member

    Glad to help you.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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

© 2023 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