James Thomson

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Making my own Venue list page – how to display venue data #765001
    James Thomson
    Participant

    (ps the reason that h3 tag is off, i think pasting in the code, it tries to render that part as opposed to just showing what I pasted)

    in reply to: Making my own Venue list page – how to display venue data #764998
    James Thomson
    Participant

    Yeah I’m not sure why it pasted that way (h3 tag), its correct on my end, so that’s not an issue. And I’m still a little confused, here is my full code, what should I do to pass that in?

    <?php get_header();
    if ( !defined(‘ABSPATH’) ) { die(‘-1’); }
    $venue_id = get_the_ID();
    ?>

    <div id=”content”>

    <div id=”inner-content” class=”nowrap clearfix”>

    <div id=”main” class=”eightcol first clearfix” role=”main”>
    <div id=”inner-main”>

    <article id=”post-<?php the_ID(); ?>” <?php post_class(‘clearfix’); ?> role=”article” itemscope itemtype=”http://schema.org/BlogPosting”&gt;

    <header class=”article-header”>

    <h1 class=”page-title” itemprop=”headline”><?php the_title(); ?></h1>

    </header> <!– end article header –>

    <section class=”entry-content clearfix” itemprop=”articleBody”>
    <?php the_content(); ?>

    <ul class=”venue-list”>
    <?php global $post;
    $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;
    $upcoming = tribe_get_events( array(
    ‘eventDisplay’=>’upcoming’,
    ‘post_type’=>’tribe_venue’,
    ‘posts_per_page’=>10,
    ‘paged’ => get_query_var(‘page’)
    ) );

    foreach($upcoming as $post) :
    setup_postdata($post); ?>
    <li id=”post-<?php the_ID(); ?>” class=”<?php echo $postclass; ?>”>
    <div class=”fivecol first”>
    <?php if ( has_post_thumbnail()) { ?>
    ” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_post_thumbnail(); ?>
    <?php } else { ?>
    <?php } ?>
    </div>
    <div class=”sevencol last”>
    <h3>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></h3>
    <div class=”tribe-events-event-meta”>

    <?php if ( tribe_show_google_map_link() ) : ?>
    <!– Google Map Link –>
    <?php echo tribe_get_meta(‘tribe_event_venue_gmap_link’); ?>
    <?php endif; ?>

    <!– Venue Meta –>
    <?php do_action(‘tribe_events_single_venue_before_the_meta’) ?>
    <?php echo tribe_get_meta_group( ‘tribe_event_venue’ ) ?>
    <?php do_action(‘tribe_events_single_venue_after_the_meta’) ?>

    </div><!– .tribe-events-event-meta –>

    <!– Venue Description –>
    <?php if( get_the_content() ) : ?>
    <div class=”tribe-venue-description tribe-events-content entry-content”>
    <?php the_content(); ?>
    </div>
    <?php endif; ?>
    </div>

    <?php
    endforeach;
    ?>

    <?php wp_reset_query(); // reset the query ?>

    </section> <!– end article section –>

    </article> <!– end article –>

    </div>
    </div> <!– end #main –>

    <?php get_sidebar(); ?>

    </div> <!– end #inner-content –>

    </div> <!– end #content –>

    <?php get_footer(); ?>

    in reply to: Making my own Venue list page – how to display venue data #759963
    James Thomson
    Participant

    The google map and venue meta don’t show, but the title and image and content (if there is any entered) do

Viewing 3 posts - 1 through 3 (of 3 total)