{"id":5216297,"date":"2014-08-22T13:11:25","date_gmt":"2014-08-22T13:11:25","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-parse-error-7\/"},"modified":"2016-08-22T00:44:31","modified_gmt":"2016-08-22T00:44:31","slug":"php-parse-error-7","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-parse-error-7\/","title":{"rendered":"PHP parse error"},"content":{"rendered":"<p>I can&#8217;t figure out what the problem is.<\/p>\n<p>PHP Parse error:  syntax error, unexpected T_ENDIF in page.php on line 59<\/p>\n<p>&lt;?php get_header(); ?&gt;<br \/>\n&lt;?php if (have_posts()): ?&gt;<br \/>\n        &lt;?php while (have_posts()) { the_post(); ?&gt;<br \/>\n                &lt;article id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221; &lt;?php post_class(&#8216;post&#8217;); ?&gt;<br \/>\n                &lt;?php if($post-&gt;ID == 2 || $post-&gt;ID == 440) { ?&gt;<br \/>\n                        &lt;div class=&#8221;latestNews latestBlock&#8221;&gt;<br \/>\n                        &lt;?php if (ICL_LANGUAGE_CODE == &#8216;nl&#8217;) { ?&gt;<br \/>\n                         <strong>Nieuws<\/strong><br \/>\n                        &lt;?php } else { ?&gt;<br \/>\n                         <strong>Nieuws<\/strong><br \/>\n                        &lt;? } ?&gt;<br \/>\n                        &lt;?php $temp_query = $wp_query; ?&gt;<br \/>\n                        &lt;?php query_posts(&#8216;category_name=News&amp;showposts=5&#8217;);<br \/>\n                                while (have_posts()) { the_post(); ?&gt;<br \/>\n                                &lt;div class=&#8221;post&#8221; id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221;&gt;<\/p>\n<ul>\n<li><a>&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;<\/a><\/li>\n<\/ul>\n<p>                                &lt;\/div&gt;<br \/>\n                        &lt;?php } ?&gt;<br \/>\n                        &lt;\/div&gt;<\/p>\n<p>                        &lt;div class=&#8221;latestVacs latestBlock&#8221;&gt;<br \/>\n                        &lt;?php if (ICL_LANGUAGE_CODE == &#8216;nl&#8217;) { ?&gt;<br \/>\n                         <strong>Vacatures<\/strong><br \/>\n                        &lt;?php } else { ?&gt;<br \/>\n                         <strong>Vacatures<\/strong><br \/>\n                        &lt;? } ?&gt;<br \/>\n                        &lt;?php query_posts(&#8216;post_type=bw_vacatures&amp;showposts=5&#8217;);<br \/>\n                                while (have_posts()) { the_post(); ?&gt;<br \/>\n                                &lt;div class=&#8221;post&#8221; id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221;&gt;<\/p>\n<ul>\n<li><a>&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;<\/a><\/li>\n<\/ul>\n<p>                                &lt;\/div&gt;<br \/>\n                        &lt;?php } ?&gt;<br \/>\n                        &lt;\/div&gt;<br \/>\n                        &lt;?php wp_reset_query(); ?&gt;<br \/>\n                        &lt;div class=&#8221;clearer&gt;<br \/>&lt;\/div&gt;<br \/>\n                &lt;? } ?&gt;<\/p>\n<p>                        &lt;header&#8221;&gt;<br \/>\n                                &lt;h1&gt;<a>&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&#8221;&gt;<br \/>\n&lt;?php the_title(); ?&gt;<\/a>&lt;\/h1&gt;<br \/>\n                        &lt;\/header&gt;<br \/>\n                        &lt;section&gt;<br \/>\n                        &lt;?php the_content(&#8216;Read the rest of this entry &raquo;&#8217;); ?&gt;<br \/>\n                        &lt;\/section&gt;<br \/>\n                        &lt;footer&gt;<br \/>\n                                &lt;?php wp_link_pages(&#8216;before=&lt;div class=&#8221;post-page-links&#8221;&gt;Page:&amp;after=&lt;\/div&gt;&#8217;); ?&gt;<br \/>\n                                &lt;?php edit_post_link(&#8216;Edit this page&#8217;, &#8216;&lt;p&gt;&#8217;, &#8216;&lt;\/p&gt;&#8217;); ?&gt;<br \/>\n                        &lt;\/footer&gt;<br \/>\n                &lt;\/article&gt;<\/p>\n<p>        &lt;?php } ?&gt;<\/p>\n<p>        &lt;?php \/* comments_template(); *\/ ?&gt;<\/p>\n<p>        &lt;?php endif; ?&gt;<\/p>\n<p>&lt;?php \/\/ get_sidebar(); ?&gt;<br \/>\n&lt;?php get_footer(); ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-5216297","topic","type-topic","status-closed","hentry","topic-tag-php-parse-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5216297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5216297\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5216297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}