Parse error: syntax error, unexpected 'else' (T_ELSE)
-
Hab heute die Funktion „Post Format“ in meine functions.php eingefügt und wollte nun die Abfrage im loop bearbeiten… jetzt meckert mein Theme jedoch bei der Abfrage… hier mal der Schnipsel…
<?php if ( has_post_format( 'image' )) { ?> <div class="post-wrapper-image" style="padding-top: 5px !important; margin-top: 15px;"> <?php the_post_thumbnail('medium'); { ?> <?php the_content(); ?> <div style="clear: both;"></div> </div> <!-- end .post-wrapper --> <?php }; ?> <?php else if ( has_post_format( 'quote' )) { ?> <div class="post-wrapper-quote" style="padding-top: 5px !important; margin-top: 15px;"> <?php the_content(); ?> <div style="clear: both;"></div> </div> <!-- end .post-wrapper --> <?php }; ?> <?php else if ( has_post_format( 'status' )) { ?> <div class="post-wrapper-status" style="padding-top: 5px !important; margin-top: 15px;"> <?php the_content(); ?> <div style="clear: both;"></div> </div> <!-- end .post-wrapper --> <?php }; ?> <?php } else { ?>
Falls weitere Infos hilfreich wären, sagt bescheid… Danke 😉
Ansicht von 5 Antworten – 1 bis 5 (von insgesamt 5)
Ansicht von 5 Antworten – 1 bis 5 (von insgesamt 5)
- Das Thema „Parse error: syntax error, unexpected 'else' (T_ELSE)“ ist für neue Antworten geschlossen.