Forum Replies Created
-
AuthorPosts
-
snorton
ParticipantI don’t work for Modern Tribe, so maybe I can help 🙂
Try this (just remember that if you change your theme down the road you’ll find that this will give you an error):
echo do_shortcode('[tabgroup title=""][tab title="About"]' . the_content() . '[/tab][tab title="Map"]' . tribe_get_embedded_map() . '[/tab][tab title="Artists"][subposts_show_childs slug="gallery-artists" link="true" excerpt="true"][/tab][/tabgroup]');
Is your tabgroup title supposed to be blank?
What if you choose not to display the map? You’ll want a variable to check if the map has been enabled in the event before outputting the tag I’d imagine:if (tribe_embed_google_map()) {$maptab = '[tab title="Map"]' . tribe_get_embedded_map() . '[/tab]'; }; echo do_shortcode('[tabgroup title=""][tab title="About"]' . the_content() . '[/tab]' . $maptab . '[tab title="Artists"][subposts_show_childs slug="gallery-artists" link="true" excerpt="true"][/tab][/tabgroup]');snorton
ParticipantIt was definitely a broader conflict. I’ve historically used both plugins in conjunction with each other but made some significant changes to the use of each plugin recently. Perhaps the issue always existed and I never noticed since, again, when logged in the problem doesn’t exist.
The plugin developer has been unresponsive on wordpress.org’s forums and it appears as though there are several folks experiencing a variety of issues with it. User Access Manager allows an admin (or similar role) to assign groups to certain post_types and restrict access to other post_types (in my organization it’s best to allow specific managers to edit ONLY their pages. I don’t have the time to create a custom plugin for this type of management so I’ve relied on UAM).
I spent some time trying to recreate the problem and haven’t been successful, so I cannot pinpoint exactly where the issue originates.
I’ve simply disabled the plugin until I can develop an alternative solution to our workflow.
So while my issue is not technically resolved, I understand it goes beyond the scope of which you guys are able to provide assistance.
Thanks, Barry.March 5, 2014 at 8:52 am in reply to: problem with tribe_get_events(); showing repeated start date #113146snorton
Participant@sunvalleycenter , I had a similar situation where I wanted to build a custom list view. This will need to be modified to fit your needs, but outputs recurring event dates correctly without repeating the initial event date:
http://pastebin.com/NzGyFxEzFebruary 27, 2014 at 11:08 am in reply to: Getting rid of the "Country" in the address in list view #110271snorton
Participant@sciotomile : I know that ECP has hooks aplenty for changing the output via functions, but you may find it easier to simply override the template files. In the case of overriding the List View template file, you’ll want to take the
single-event.phpfrom here:\wp-content\plugins\the-events-calendar\views\list
and place a copy of it here:
\wp-content\themes\[your theme]\tribe-events\listFrom there you can completely change the way the events are output in the list view. I prefer this method in times where I want to make considerable changes to default views.
snorton
Participantsnorton
Participant@andersha / @barry: Here’s a list widget template override I created for the same purpose of mimicking the style of the list of events in the mini-calendar widget without the calendar itself.
snorton
Participanttry this:
#sidebar > .tribe-events-adv-list-widget ol { padding-left:0; }I am assuming, of course, you’re referring to the indention on the list items? That space is actually created in your case with padding and not a margin. So your CSS would work, too, if you changed it to padding-left instead of margin-left. My solution should work, too.
snorton
Participanttribe_events are custom post types (CPT), but they use the same wordpress tables as regular post types. For the meta, it is going to be located in your wp_postmeta table (name may have a prefix depending on how your database was setup).
February 26, 2014 at 12:16 pm in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109751snorton
ParticipantLet me try this again. Tested on localhost and it returns what we’re looking for – my apologies for the messed up function above!!
February 26, 2014 at 12:04 pm in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109740snorton
ParticipantThis also checks if you’re on a tribe event page.
February 26, 2014 at 12:03 pm in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109739snorton
ParticipantWell, whoops! I knew better but did it anyway.
http://pastebin.com/XQGerpgVFebruary 26, 2014 at 11:12 am in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109722snorton
ParticipantIt looks like you’re echoing nothing if there is a post thumbnail and a placeholder image if the featured image has not been set?
Add this to your functions.php file to get it to (hopefully) work properly:
<?php
add_action(‘wp_head’, ‘my_featured_fb_image’);function my_featured_fb_image($post_id = null, $size = ‘full’) {
$post_id = get_the_ID();
$image_src = get_post_thumbnail( $post_id , $size );
$fb_meta_tag = ”;
if ( !empty( $image_src ) ) {
$fb_meta_tag .= ‘<meta property=”og:image” content=”‘ . $image_src . ‘” >’;
echo $fb_meta_tag;
}
else {
echo ‘<meta property=”og:image” content=”http://www.sciotomile.com/wp-content/uploads/2014/02/Default_Feature_Thumbnail.png”/>’;
}
}
?>Also, for what it’s worth, here’s a ref to FB’s doc on the subject of Open Graph:
https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tagssnorton
Participant@resonantimagery: I’ve learned that you must increase the specificity for your CSS in order to override the tribe styles. I’d be happy to point you in a more *specific* (horrible pun intended) direction if you’ll provide me with a link to a page that contains this widget.
February 21, 2014 at 9:23 am in reply to: How do I activate Events Calendar PRO on my current install #108011snorton
ParticipantYou need to download the Events Calendar Pro plugin. Assuming you’re logged in to this site, just follow the link to locate any plugins you’ve purchased from these guys. From there, to add the license key to the client site, go to [client url]/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=licenses
snorton
Participant@ken, to answer your question about displaying the categories as a definition list, you’ll want to go ahead and use:
echo tribe_get_event_taxonomy($post_id,'before=<dd class="tribe-events-event-categories">&sep=</dd><dd class="tribe-events-event-categories">&after=</dd>'); // Classes added to allow for stylingNot sure why there’s two functions to call the category/taxonomy, but I just find tribe_get_event_taxonomy easier to add the html $args to.
If you’re wanting a comma-separated definition list, you’ll need to tweak this… I thought the proper structure for a dl list is:<dl> <dt></dt> <dd></dd> </dl>or:
<dl> <dt></dt> <dd></dd> <dd></dd> <--! etc., etc. --> </dl> -
AuthorPosts
