"Weitere Artikel" und "Vor einem Jahr"

May 22, 2007 13:19 pm · 0 comments

Unten lass ich jetzt rechts die Titel von 10 weiteren Artikeln anzeigen und links die Artikel welche vor einem bzw. vor zwei Jahren (und jeweils auch einen Tag mehr) geschrieben wurden. Mein Code dazu:


Weitere Artikel

get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'publish' && ( post_date LIKE '$theDate12 %' OR post_date LIKE '$theDate11 %' ) ORDER BY 'ID' DESC"); $myposts2 = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'publish' && ( post_date LIKE '$theDate22 %' OR post_date LIKE '$theDate21 %' ) ORDER BY 'ID' DESC"); if ($myposts1) { ?>

Vor einem Jahr

Vor zwei Jahren

Leave a Comment

Previous post:

Next post: