Custom display no widget.

Home Forums Calendar Products Events Calendar PRO Custom display no widget.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #949774
    Justin
    Participant

    I’m using flexible post widget to display event items on my home page.

     if( $flexible_posts->have_posts() ):
       ?>
    <ul>
       <?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
       <li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
          <a href="<?php echo the_permalink(); ?>">
             <h4 class="cal-icon"><?php echo tribe_get_start_date($post->ID, true, 'F j, Y'); ?></h4>
          </a>
          <p><?php  echo tribe_get_start_time(); ?> - <?php  echo tribe_get_end_time(); ?></p>
          <a href="<?php echo the_permalink(); ?>">
             <h4 class="event-icon"><?php the_title(); ?></h4>
          </a>
          <a href="<?php echo the_permalink(); ?>">
             <h4 class="loc-icon"><?php echo tribe_get_venue( '$venue_ID' ); ?></h4>
          </a>
       </li>
       <?php endwhile; ?>
    </ul>

    As you can see the code displays events based on your functions and a simple loop. How can I exclude categories?

    Is it better to use your widget and customize it with css.

    Thanks

    #949810
    Barry
    Member

    Hi Davin,

    I’m not sure it would be “better” to use our widget, especially if this Flexible Post Widget tool provides some capability you find you are in need of, but at the same time it’s not something I’m familiar with and so it becomes difficult to suggest how you might tweak things.

    Nonetheless, they key to cleanly removing categories is generally to intercept queries and modify them with an appropriate taxonomy query.

    We covered some of this in a similar thread just recently – extending and adapting that same sort of strategy is going to be a pretty good way to go 🙂

    #953451
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Custom display no widget.’ is closed to new replies.