inTOWN
Forum Replies Created
-
+1
+1 here
I figured out at the Admin Menu Editor was in the way, so I deactivated it, then the Import from CSV showed up.
Yet, the import doesn’t work. It says: uploaded successfully but doesn’t show the new users….Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Past eventsuh??? Okay try like this:
<?php /** * The TEC template for a list of events. This includes the Past Events and Upcoming Events views * as well as those same views filtered to a specific category. * * You can customize this view by putting a replacement file of the same name (list.php) in the events/ directory of your theme. */ // Don't load directly if ( !defined('ABSPATH') ) { die('-1'); } $event = array(); $tribe_ecp = TribeEvents::instance(); reset($tribe_ecp->metaTags); // Move pointer to beginning of array. foreach($tribe_ecp->metaTags as $tag){ $var_name = str_replace('_Event','',$tag); $event[$var_name] = tribe_get_event_meta( $post->ID, $tag, true ); } $event = (object) $event; //Easier to work with. ob_start(); post_class($alt_text,$post->ID); $class = ob_get_contents(); ob_end_clean(); ?> <div class="upcoming"> <hgroup><div class="icon"><div class="news"></div></div> <h3>Past Events</h3></hgroup> <?php $loop = new WP_Query( array( 'post_type' => 'tribe_events', 'posts_per_page' => 2, 'orderby' => 'date', 'order' => 'ASC', 'paged', 'eventDisplay' => 'past') ); ?> <ul id="list" class="small"> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php tribe_is_past($post->ID, 'tribe_is_past', true); ?> <li class="small"> <a href="<?php the_permalink(); ?>"><?php if ( has_post_thumbnail() ) the_post_thumbnail('small-list-thumbnail'); ?></a> <span> <h4><?php the_title('<a href="' . tribe_get_event_link() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a>'); ?> </h4> <?php echo tribe_get_start_date( null, false, 'd.m.y' ); ?> <br /> <?php $venue = tribe_get_venue(); if ( !empty( $venue ) ) : ?><?php echo $venue; ?> <?php endif; ?> <?php $country = tribe_get_country(); if ( !empty( $country ) ) : ?><?php echo $country; ?> <?php endif; ?> </span> </li> <?php endwhile; ?> </ul> </div>Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Past eventsForum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Past eventsForum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Past eventsAh, foundit:
<?php $loop = new WP_Query( array( 'post_type' => 'tribe_events', 'posts_per_page' => 2, 'orderby' => 'date', 'order' => 'ASC', 'paged', 'eventDisplay' => 'past') ); ?>Ah found it, it was missing:
add_action( ‘init’, ‘add_calendar_taxonomy’, 0 );
function add_calendar_taxonomy() {
register_post_type(‘tribe_events’,array( // Registers Events Calendar Custom Post Type
‘taxonomies’ => array(‘category’, ‘post_tag’) // This registers the native WordPress taxonomies with The Events Calendar
));
}Weird, it doesn’t work here tho
Can you explain me how?
I think it should be (not sure)
‘post_name’ => ‘your_category’,Also not when putting in a shortcode?
Theme-my-login let’s you create your own login page, f.e. > http://www.mydomain.com/wp-content/themes/mytheme/mylogintemplate.php
Apart from a different url it has the same functions
Great, don’t know how pastebin works with this forum
<!——————————–>
<?php $loop = new WP_Query( array( ‘post_type’ => ‘tribe_events’, ‘posts_per_page’ => 10, ‘orderby’ => ‘date’, ‘order’ => ‘ASC’, ‘paged’ ) ); ?><!–this works, but calls another–>
<?php /*?><?php include(‘events/list.php’); ?>
<?php */?>
<!——————————–>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<?php get_post_meta($post->ID, ‘events’, true); ?>
<table id=”list”><tr>
<td class=”eventimg”>“><?php if ( has_post_thumbnail() ) the_post_thumbnail(‘small-list-thumbnail’); ?></td >
<td class=”date”><?php echo tribe_get_start_date( null, false, ‘d.m’ ); ?> </span>
<td class=”event”> <?php the_title(‘‘, ‘‘); ?> </td >
<td class=”location”> <?php $venue = tribe_get_venue(); if ( !empty( $venue ) ) : ?><?php echo $venue; ?> <?php endif; ?></td >
<td class=”country”> <?php $country = tribe_get_country(); if ( !empty( $country ) ) : ?><?php echo $country; ?> <?php endif; ?></td >
<td class=”category”> <?php $category = tribe_meta_event_cats(‘ ‘,’,’); if ( !empty( $category ) ) :?><?php echo $category; ?><?php endif; ?></td >
</tr>
</table>
<?php endwhile; ?>Found it with the help of a collegae, probably can be done better but this works:
in my-loop.php:
`<script src=”http://pastebin.com/embed_js.php?i=r2bPuYka”></script>’
The table I copied from my events/list.php template…..
Anyone? I only need to know how to show events… main thing of the plugin. Probably am missing something, please inform me.