Hallo zusammen,
ich verstehe die single.php nicht richtig. Eigentlich kann ich auf das Erscheinen einer Einzelbeitragsseite durch Anklicken eines Beitrags in der Übersicht verzichten. Wenn dies dann aber doch sein soll, so soll er sodann zumindest mit Beitragsbild gezeigt werden. Dies ist aber nicht der Fall.
An welcher Stelle muss ich hierfür welchen Code einfügen?
PHP
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Pytheas
* @since Pytheas 1.0
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<header class="page-header">
<h1 class="page-header-title"><?php the_title(); ?></h1>
<nav class="single-nav clr">
<!--
<?php next_post_link('<div class="single-nav-left">%link</div>', '<span class="fa fa-chevron-left"></span>', false); ?>
<?php previous_post_link('<div class="single-nav-right">%link</div>', '<span class="fa fa-chevron-right"></span>', false); ?>
</nav><!-- .page-header-title -->
</header><!-- .page-header -->
<div id="primary" class="content-area span_24 col clr clr-margin">
<div id="content" class="site-content" role="main">
<?php if ( !post_password_required() ) { ?>
<!--
<ul class="meta single-meta clr">
<li><span class="fa fa-clock-o"></span><?php echo get_the_date(); ?></li>
<li><span class="fa fa-folder-open"></span><?php the_category(' / '); ?></li>
<?php if( comments_open() ) { ?>
<li class="comment-scroll"><span class="fa fa-comment"></span> <?php comments_popup_link(__('Leave a comment', 'wpex'), __('1 Comment', 'wpex'), __('% Comments', 'wpex'), 'comments-link', __('Comments closed', 'wpex')); ?></li>
<?php } ?>
<li><?php the_author_posts_link(); ?></li>
</ul><!-- .meta -->
<?php get_template_part('content', get_post_format() ); ?>
<?php } ?>
<h4><article class="entry clr">
<?php the_content(); ?>
</article><h4><!-- /entry -->
<?php
// Post pagination
wp_link_pages( array( 'before' => '<div class="page-links clr">', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
<?php
// Tags
if ( of_get_option( 'blog_tags', '1' ) ) { ?>
<?php the_tags('<div class="post-tags clr">','','</div>'); ?>
<?php } ?>
<?php
// Author bio
if ( of_get_option('blog_bio', '1' ) && get_the_author_meta( 'description' ) ) { ?>
<?php get_template_part( 'author-bio' ); ?>
<?php } ?>
<?php
// Related posts
if ( of_get_option('blog_related', '1' ) ) { ?>
<?php get_template_part( 'content', 'related-posts' ); ?>
<?php } ?>
<?php comments_template(); ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php endwhile; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Ich würde in der Nähe dieses Teils vermuten:
<
Für Eure Hilfe vielen Dank vorab.