WordPress.org

Support

Support » How-To and Troubleshooting » get_the_title & ’ & switch

get_the_title & ’ & switch

  • Some I’ve got a little problem. I need to get title of post and then depending on title (using switch) some actions are done.
    To get title I use get_the_title function, but received title doesn’t trigger case of switch. If I just write
    $episode_title="title here"
    case is triggered as it is supposed to.
    Title is “Queen’s Blade: Rebellion” and I suspect problem is because of ’. I also tried using html code for this thing which is apparently called “Right single quotation mark” and case still wasn’t triggered. Does anyone knows any solution?

  • The topic ‘get_the_title & ’ & switch’ is closed to new replies.
Skip to toolbar