From ad945881aefb414cc0645d899f7751eb805faf81 Mon Sep 17 00:00:00 2001 From: Sjur Hernes Date: Mon, 18 Jul 2011 07:03:48 +0200 Subject: [PATCH] made first sketch for custom loop, with lightboxes --- functions.php | 2 ++ header.php | 4 ++++ loop-index.php | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 loop-index.php diff --git a/functions.php b/functions.php index 168cfde..b06a326 100644 --- a/functions.php +++ b/functions.php @@ -71,6 +71,8 @@ class Artist_Widget extends WP_Widget { register_widget('Program_Widget'); register_widget('Artist_Widget'); +add_filter('widget_text', 'do_shortcode'); + function get_related_artists( $post_id) { diff --git a/header.php b/header.php index 47d16bc..9f0a468 100644 --- a/header.php +++ b/header.php @@ -38,6 +38,10 @@ + + + + Nyheter + 'post', + 'posts_per_page' => 10, + 'order' => 'DESC' + )); + +if ($news->have_posts()) : while ($news->have_posts()) : $news->the_post(); ?> + +
+ +

+

Posted on

+ + +

'); ?> Posted in |

+
+ + + + + +

No Posts Found

+ + +
+ +

Program

+ + 'event', + 'posts_per_page' => -1, + 'meta_key' => 'neuf_events_starttime', + 'orderby' => 'meta_value', + 'order' => 'ASC' + ) ); + +if ($events->have_posts()) : while ($events->have_posts()) : $events->the_post(); ?> + +
+ +

+ +

+

Posted on

+ + +

'); ?> Posted in |

+
+ + + + + +

No Events Found

+ +