nächste Termine
[insert_php]
global $wpdb;$max = 12;
$rows = 3;
$counter = 1;
$blocks = $max/$rows+1;
$date_now = date(„Ymd“);
$sql=“SELECT * FROM wp_tiva_events where description >= ‚$date_now‘ order by description ASC LIMIT 0,$max“;
$posts = $wpdb->get_results($sql);
foreach ($posts as $post){
if($counter==1 || $counter==$blocks){
print(“
global $wpdb;$max = 12;
$rows = 3;
$counter = 1;
$blocks = $max/$rows+1;
$date_now = date(„Ymd“);
$sql=“SELECT * FROM wp_tiva_events where description >= ‚$date_now‘ order by description ASC LIMIT 0,$max“;
$posts = $wpdb->get_results($sql);
foreach ($posts as $post){
if($counter==1 || $counter==$blocks){
print(“
„);
}
print(‚
}
print(‚
‚.$post->name.‘
‚);
$counter++;
if($counter==$blocks){
print(“
„);
$counter=1;
}
}
[/insert_php]