Genesis Simple Hooks
Alternative conditional statements problem (1 post)

  1. zamba
    Posted 3 years ago #

    I want to display nrelate and some social buttons on all posts but not on category pages. I successfully used the statement <?php if (!is_category()) { ?>. I then wanted to exclude both category and author pages, so I tried the code <?php if (!is_category()) || (!is_author()) { ?> which caused nothing to be displayed on normal post pages as well as the author and category pages. Obviously I've missed something, can anyone help?
    I'm using Simple Hooks


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Genesis Simple Hooks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic