How can I check for a word in wordpress post?

Discussion in 'Programming' started by MindReality, Jul 16, 2013.

  1. #1
    Hi,

    How can I check for a word in a wordpress post?

    I would like the code to check for the tags [hidepost] and [/hidepost] and to display a certain text if the tags are found.

    How can I do that?
     
    MindReality, Jul 16, 2013 IP