Display event title on single event page outside of the single-event.php

Home Forums Calendar Products Events Calendar PRO Display event title on single event page outside of the single-event.php

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1099581
    Enoch
    Participant

    Hi,

    Is there a function for displaying the event title on a single-event page outside of the single-event.php template?

    I display the page title on my Default Page Template and I would to display the event title (I am using a conditional for single event page) but I’m having no such luck finding the function to do this.

    Does such functionality exist?

    #1099588
    George
    Participant

    Hey @rubeez,

    Thank you for reaching out!

    There is unfortunately not a simple, singular function that would get the event title for you. This can actually be a trickier thing to pull off than it seems, because the global $post variable used for such information might be pointing to some post ID other than that of the event!

    We cannot help with customizations, so unfortunately this is something that will mostly be in your hands (although maybe reaching out to the theme developers for some assistance would be fruitful, if you haven’t done that already).


    Despite the fact that we cannot help with code customizations, I just wanted to recommend something that might help. Getting the ID of the event itself, like I said above, can be tricky, but it’s trying out using the basic WordPress templating functions in your customized template file.

    Can you paste your theme’s entire, un-edited Default Page Template file (usually just page.php) into a Gist at http://gist.github.com, then share a link to that Gist here?

    I will take a look at it and try to recommend some code changes to make this work! I cannot guarantee that I’ll be able to make this work, but I will give it a shot.

    Thank you,
    George

    #1105968
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Display event title on single event page outside of the single-event.php’ is closed to new replies.