[Theme: Underscores (_S) – custom build] PHP Error in my functions.php
-
Hey im currently developing my own theme.
However I got a problem with my code in functions PHP.This is my code:
function feature_post(){ if ( is_home() ){ if ( have_posts() ) { $featured = new WP_Query( 'posts_per_page=1' ); while ( $featured->have_posts() ) : $featured->the_post(){ get_template_part( 'content', get_post_format() ); }endwhile; } add_action('feature_post','before_header'); } }
And this is the error i am getting
Parse error: syntax error, unexpected '{' in /Users/lucasdechow/Sites/the-damn-margin-blog/wp-content/themes/tdm/functions.php on line 184
What have I done wrong?
Im using the underscores
- The topic ‘[Theme: Underscores (_S) – custom build] PHP Error in my functions.php’ is closed to new replies.