Danke, das funktioniert =)
Beiträge von schischikowski
-
-
Hier die gesamte Datei:
Fehler: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /users/SEITE/www/beta/wp-content/themes/silver/index.php on line 30
PHP
Alles anzeigen<?php get_header(); ?> <?php include 'highlight.php'; ?> <style>.current-news { color: #df6101 !important;} </style> <section> <?php /* The Loop — with comments! */ ?> <?php while ( have_posts() ) : the_post() ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="subtitle"><?php if (function_exists('the_subheading')) { the_subheading('<p>', '</p>'); } ?></div> <a class="title" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a> <div class="story"> <?php if ( has_post_format( 'image' )) { echo ' <table weight="585px" cellpadding="0" cellspacing="0"> <tr> <td><?php the_post_thumbnail('thumbnail'); ?></td> <td><?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></td> </tr> </table> '; } else { echo '<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>';}?> <?php comments_template(); // Get wp-comments.php template ?></div> <div class="status">Geschrieben am: <?php the_time('j.F Y') ?> | <?php the_author(); ?> <a class="social" href="<?php the_permalink(); ?>#disqus" title="<?php printf( esc_attr__( '%s' ), the_title_attribute( 'echo=0' ) ); ?> Kommentieren" rel="bookmark">Kommentieren</a></div> </article> <?php endwhile; ?> </section> <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?> <aside> <?php get_sidebar(); ?> <?php get_footer(); ?> -
Hey, ich hab ein kleines Problem beim erstellen eines neuen Designs und wollte gerne die neuen Post Types verwenden und hab bisschen rumversucht und leider gibt es dort einen PHP Fehler.
PHP<?php if ( has_post_format( 'image' )) { echo ' <table weight="585px" cellpadding="0" cellspacing="0"> <tr> <td><?php the_post_thumbnail('thumbnail'); ?></td> <td><?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></td> </tr> </table> '; } else { echo '<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>';}?>Vielleicht könnt ihr mir ja helfen =)