WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How can I test if I am at a page or a post (php if-test)?

[Resolved] How can I test if I am at a page or a post (php if-test)?

  • I have this plugin that allows user to give my posts a rating, but it is showing on the pages on my site too. How can I write an if-test that only shows this rating on posts and not on pages?

    What is the variable (if any) that I need to check out?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How can I test if I am at a page or a post (php if-test)?’ is closed to new replies.