Skip to:
Content
Pages
Categories
Search
Top
Bottom

Run script only on invitations page without plugin


  • locker17
    Participant

    @locker17

    I want to run a php script on a certain page only. How can I achieve that? Without any snippet plugin.
    Example:
    Script should run on this page: http://whateverdomain.com/members/lisa/Einladungen/

    I tried

    if (is_page('Einladungen')) { do something }
    

    But this doesnt work. Tried is_page(‘einladungen’) and is_page(‘invitations’) also. Same.

    Any help?

  • You must be logged in to reply to this topic.
Skip to toolbar