Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

dcf ordering error

By: a guest on Jan 11th, 2012  |  syntax: None  |  size: 0.56 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $eventargs = array('post_type' => 'event');
  2.             slt_cf_get_posts_by_custom_first('date', $eventargs, 'ASC', true, 'post');    
  3.  
  4.                        
  5.             foreach($events as $post) : setup_postdata($post); ?>
  6.             <div id="event-summary">
  7.                        
  8.                 <div id="date"><?php echo slt_cf_field_value('date'); ?></div>
  9.                                 <?php echo the_post_thumbnail('event'); ?>
  10.                                 <?php echo the_title();?>
  11.                                 <?php echo the_excerpt();?>
  12.                                 </div><!-- #event-summary -->
  13.                
  14.                                
  15.                         <?php endforeach; ?>
  16.            
  17.             </div><!-- #events -->
clone this paste RAW Paste Data