Quantcast
Channel: GSmith
Viewing all articles
Browse latest Browse all 12

WordPress – Tribe Events Calendar

$
0
0
I have been using the tribe events calendar plugin for wordpress – which is excellent.

I have been customising the list view, and was trying to add an additional link to the event.

Elsewhere on the page, there is a method tribe_get_event_link() which seemed a pretty promising option to get the link. This was being used in the following context:

<?php the_title('<h2 class="entry-title" itemprop="name"><a href="' . tribe_get_event_link() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?>

However this didn’t work – I assume the method works within the context of the the_title method.

If the get_ is removed from the method name – it seems that it works.

tribe_event_link()

For other methods and properties with a get_ in the name, they also work when the get is removed. Please excuse the rather poor technical knowledge of php – still seems a world away from python / C#.


Viewing all articles
Browse latest Browse all 12

Trending Articles