Liebe Profis
Endlich habe ich die Zeit gefunden, auch an meiner eigenen Webseite wieder etwas Zeit zu investieren. Bei den anderen Seiten habe ich ja absolute super Hilfe hier im Forum erhalten. Das habe ich ehrlich gesagt noch nirgends gesehen.
Nun zu meiner Frage bez. zu meinem Problem:
Ich habe für meine Webseite eine eigene single.php kreiert. Diese möchte ich nun in die original single.php einfügen, jedoch erbricht mir das erheblich den Kopf.
Vielleicht kann mir da jemand zur Hand gehen?
Hier die beiden Codes:
1. Meine eigene single.php
PHP
<?php
get_header(); ?>
<div id="single_page" class="container-full-width">
<div class="container">
<div class="container-fluid">
<?php do_action( 'cyberchimps_before_container' ); ?>
<div id="container" <?php cyberchimps_filter_container_class(); ?>>
<?php do_action( 'cyberchimps_before_content_container' ); ?>
<div id="content" <?php cyberchimps_filter_content_class(); ?>>
<?php do_action( 'cyberchimps_before_content' ); ?>
<?php while( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?><table style="width:1200px"><tbody><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;" colspan="3"><div id="inhalt"><?php if (have_posts()) : while (have_posts()) : the_post(); ?><h2><?php the_title(); ?></h2></td><td> </td></tr><tr><td style="width:20%"></td><td style= "font-size: 20px" colspan="3"><i><?php the_field('wissenschaftlicher_name:'); ?></i></td><td></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;" colspan="2"><h4>Steckbrief</h4></td><td style="text-align: right;" rowspan="12"><?php if (has_post_thumbnail()) {the_post_thumbnail('medium');} ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('langeI'); ?></td><td><?php the_field('lange'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('gewicht:'); ?></td><td><?php the_field('gewicht'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('ernahrung:'); ?></td><td><?php the_field('ernahrung'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('jungtiere:'); ?><?php the_field('gelege:'); ?></td><td><?php the_field('jungtiere'); ?><?php the_field('gelege'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('tragzeit:'); ?><?php the_field('spannweite:'); ?></td><td><?php the_field('tragzeit'); ?><?php the_field('spannweite'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('zugverhalten:'); ?></td><td><?php the_field('zugverhalten'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('fortpflanzung:'); ?></td><td><?php the_field('fortpflanzung'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('brutzeit:'); ?></td><td><?php the_field('brutzeit'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('alter:'); ?></td><td><?php the_field('alter'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('iucn:'); ?></td><td><?php the_field('iucn'); ?></td></tr><tr><td style="width:20%"></td><td></td><td></td></tr></tbody></table>
<table style="width:1200px"><tr> <td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"><?php the_field('beschreibung:'); ?></td></tr><tr><td colspan="3"></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; border-radius: 6px;"colspan="3"><div class="der-beitrag"><?php the_content(); ?> <?php edit_post_link(); ?> </td><td></td></tr></table><br><table style="width:1200px"><tr> <td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"><?php the_field('verbreitungsgebiet_/_lebensraum:'); ?></td></tr><tr><td colspan="3"></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; border-radius: 6px;"colspan="3"><?php the_field('verbreitungsgebiet_/_lebensraum'); ?> </td><td></td></tr></table><br><table style="width:1200px"><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"><?php the_field('gefahrdung:'); ?></td></tr><tr><td colspan="3"></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; border-radius: 6px;"colspan="3"><?php the_field('gefahrdung'); ?> </td><td></td></tr></table><br><table style="width:1200px"><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"><?php the_field('nahrung:'); ?></td></tr><tr><td colspan="3"></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; border-radius: 6px;"colspan="3"><?php the_field('nahrung'); ?> </td><td></td></tr></table><br><table style="width:1200px"><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"> <?php the_field('vermehrung:'); ?></td></tr><tr><td colspan="3"></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; border-radius: 6px;"colspan="3"><?php the_field('vermehrung'); ?> </td><td></td></tr></table><br><table style="width:1200px"><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"> <?php the_field('systematik:'); ?></td></tr><tr><td colspan="3"></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; border-radius: 6px;"colspan="3"><?php the_field('systematik'); ?> </td><td></td></tr></table><br><table style="width:1200px"><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"> <?php the_field('literatur:'); ?></td></tr><tr><td colspan="3"></td></tr><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; border-radius: 6px;"colspan="3"><?php the_field('literatur'); ?> </td><td></td></tr></table><br><table style="width:1200px"><tbody><tr><td style="width:20%"></td><td style= "border: solid 1px #ccaa66; margin-bottom: 5px; background-color: #617b00; border-radius: 6px;"colspan="3"><h4>Informationen</h4></td><td style="text-align: right;" rowspan="12"></td></tr><tr><td style="width:20%"></td><td><?php the_field('autor:'); ?></td><td><?php the_field('autor'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('autoren_homepage:'); ?></td><td><?php the_field('autoren_homepage'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('autoren_email:'); ?></td><td><?php the_field('autoren_email'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('fotograf:'); ?></td><td><?php the_field('fotograf'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('fotografhomepage:'); ?></td><td><?php the_field('fotograf_homepage'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('aufnahmeort:'); ?></td><td><?php the_field('aufnahmeort'); ?></td></tr><tr><td style="width:20%"></td><td><?php the_field('zoo_homepage:'); ?></td><td><?php the_field('zoo_homepage'); ?></td></tr><tr><td style="width:20%"></td><td></td><td></td></tr></tbody></table><?php endwhile; else: ?> <?php endif; ?>
<?php get_footer(); ?> <div class="more-content"> <div class="row-fluid"> <div class="span6 previous-post"> <?php previous_post_link(); ?> </div> <div class="span6 next-post"> <?php next_post_link(); ?> </div> </div> </div>
<?php // If comments are open or we have at least one comment, load up the comment template if( comments_open() || '0' != get_comments_number() ) { comments_template( '', true ); } ?>
<?php endwhile; // end of the loop. ?>
<?php do_action( 'cyberchimps_after_content' ); ?>
</div> <!-- #content -->
<?php do_action( 'cyberchimps_after_content_container' ); ?>
</div> <!-- #container .row-fluid-->
<?php do_action( 'cyberchimps_after_container' ); ?>
</div> <!--container fluid -->
</div> <!-- container -->
</div><!-- container full width -->
<?php get_footer(); ?>
Alles anzeigen