started custom loop dev

This commit is contained in:
Sjur Hernes committed 2011-07-21 10:47:09 +02:00
1 parent ad945881ae
commit 4c059e9b85
2 files changed
+9 -5

No files matched your search

+7 -2
View File
@@ -62,8 +62,13 @@ class Artist_Widget extends WP_Widget {
if ( $studart->have_posts() ) {
while ( $studart->have_posts() ) {
$studart->the_post();
$link = get_post_meta($post->ID, 'studio_artist_link', true) ? get_post_meta($post->ID, 'studio_artist_link', true) : get_permalink();
echo '<p style="font-size:'.get_post_meta($post->ID, 'studio_artist_font', true).'px"><a href="' . $link . '">' . get_the_title() . '</a></p>';
// event-lenka
$event = get_post_meta($post->ID, 'studio_artist_event', true) != "";
// ekstern lenke for artisten
if (get_post_meta($post->ID, 'studio_artist_link', true))
$link = ' <a href="'.get_post_meta($post->ID, 'studio_artist_link', true).'">ekst</a>';
else $link = "";
echo '<p style="font-size:'.get_post_meta($post->ID, 'studio_artist_font', true).'px"><a href="' . $event . '">' . get_the_title() . '</a>'.$link.'</p>';
}
} echo $args['after_widget'];
}
+2 -3
View File
@@ -43,9 +43,8 @@ if ($events->have_posts()) : while ($events->have_posts()) : $events->the_post()
<div class="post" id="post-<?php the_ID(); ?>">
<h2>
<a href="#"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a><a href="<?php the_permalink(); ?>" rel="bookmark" ></a>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p class="meta">Posted on <?php the_time('F jS, Y'); ?></p>
<a href="#"><span class="frontbox" src="#hidpos-<?php the_ID(); ?>" height="420" title="<?php the_title(); ?>"></span><?php the_title(); ?></a></h2>
<p class="meta">Posted on <?php the_time('F jS, Y'); ?></p>
<div id="hidpos-<?php the_ID(); ?>" style="display:none"><?php the_content(); ?></div>
<p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', '); ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Com &#187;', '% Comments &#187;'); ?></p>