$query = new WP_Query(array('post__not_in' => $displayedposts, 'posts_per_page' => $num, 'has_password' => false, 'post_type' => 'post')); } } else { $args = ''; if (isset($options['start_link_news_cat'])) { $args = 'cat=' . $options['start_link_news_cat']; } if (isset($args)) { $args .= '&'; } $args .= 'post_type=post&has_password=0&posts_per_page=' . $options['start_max_newscontent']; $query = new WP_Query($args); } while ($query->have_posts()) { $query->the_post(); echo fau_display_news_teaser($post->ID); wp_reset_postdata(); } } if ($options['start_link_news_show']) { echo fau_get_category_links(); } ?> </main> </div> <div class="span4 sidebar-outline"> <?php get_template_part('sidebar', 'events'); get_template_part('sidebar'); ?>
} else { $line = 0; while (have_posts()) { the_post(); $line++; if ($posttype == 'event') { get_template_part('post', 'event'); } elseif ($posttype == 'synonym') { echo fau_get_synonym($post->ID); } elseif ($posttype == 'glossary') { echo fau_get_glossar($post->ID); } elseif ($posttype == 'person') { echo FAU_Person_Shortcodes::fau_person(array("id" => $post->ID, 'format' => 'kompakt', 'showlink' => 0, 'showlist' => 1)); // } elseif ($posttype == 'post') { echo fau_display_news_teaser($post->ID, true); } else { ?> <h2 class="small"> <a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a> </h2> <?php