Trouble with targeting templates from functions file

Home Forums Calendar Products Events Calendar PRO Trouble with targeting templates from functions file

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26045
    Kyle
    Participant

    I am having trouble hooking in the templates from the functions file. I have a function that is checking for user role and permissions and then outputs certain page content. I am using the is_page_template() to target the copies I have in my subdirectory (so is_page_template(‘events/gridview.php’) but I am not getting any kind of result. Any ideas?

    #26069
    Jonah
    Participant

    Hi Kyle,

    You should be able to use these conditional wrappers instead: https://gist.github.com/2415009 – is that what you’re looking for?

    – Jonah

    #26072
    Kyle
    Participant

    Thank you that is exactly what I was looking for

    #26091
    Leah
    Member

    Awesome! Thanks Kyle.

    #977900
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Trouble with targeting templates from functions file’ is closed to new replies.