Hallo zusammen,
ich hätte gerne auf meinem Blog eine Art "Spezialkategorie" in der ich beispielsweise die Zitate oder Bilder der Woche darstelle. Artikel, die ich dieser Kategorie zugeordnet habe, würde ich auf der index.php gerne ohne Titel und Datum anzeigen lassen - ist sowas möglich?
Meine Index:
PHP
<?php get_header(); $options = get_option('neutral_options'); ?>
<div id="contents" class="clearfix">
<div id="left_col">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="title_image1">
<h2 class="post_title"><?php the_title(); ?> </a> </div></h2>
<div class="title_image2">
<ul class="post_info">
<li><?php the_time(__('j. F, Y', 'neutral')) ?></li>
<?php if ($options['author']) : ?><li><?php _e('By ','neutral'); ?><?php the_author_posts_link(); ?></li><?php endif; ?>
<?php edit_post_link(__('[ EDIT ]', 'neutral'), '<li class="post_edit">', '</li>' ); ?>
</ul>
<div class="post_content">
<?php the_content(__('Read more', 'neutral')); ?>
<?php wp_link_pages(); ?>
</div>
</div>
<?php endwhile; else: ?>
<div class="post">
<h2 class="post_title"><?php _e("Sorry, but you are looking for something that isn't here.","neutral"); ?></h2>
</div>
<?php endif; ?>
<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { include('navigation.php'); } ?>
</div><!-- END #left_col -->
<?php get_sidebar(); ?>
</div><!-- END #contents -->
<?php get_footer(); ?>
Alles anzeigen
Ich habe schon versucht sowas in der Art zu implementieren, leider ohne Erfolg, da reichen meine PHP Kenntisse nicht weit genug: