{"id":6166,"date":"2016-05-08T17:53:45","date_gmt":"2016-05-08T17:53:45","guid":{"rendered":"https:\/\/de.wordpress.org\/support\/2016\/05\/08\/contentphp\/"},"modified":"2016-05-08T17:53:45","modified_gmt":"2016-05-08T17:53:45","slug":"contentphp","status":"publish","type":"topic","link":"https:\/\/de.wordpress.org\/support\/topic\/contentphp\/","title":{"rendered":"Content.php"},"content":{"rendered":"<p>Ich habe das Problem, dass mein &#8222;read more&#8220; nicht auftauchte im Sparkling-Theme. Dann habe ich \u00fcber div. Tutorials versucht es selbst zu beheben. Jetzt Funktioniert nichts mehr.. und ich bekomme auf der HP folgende Fehlermeldung: Parse error: syntax error, unexpected &#8218;else&#8216; (T_ELSE) in \/www\/htdocs\/w01454d6\/grillkamin-kaufen.de\/wp-content\/themes\/sparkling\/content.php on line 43<\/p>\n<p>Mein Content.php sieht so aus:<\/p>\n<pre><code>&lt;?php\n \/**\n  * @package sparkling\n  *\/\n ?&gt;\n\n &lt;article id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;\n \t&lt;div class=&quot;blog-item-wrap&quot;&gt;\n \t\t\t\t&lt;a&gt;&quot; title=&quot;&lt;?php the_title_attribute(); ?&gt;&quot; &gt;\n \t\t\t \t&lt;?php the_post_thumbnail( &#039;sparkling-featured&#039;, array( &#039;class&#039; =&gt; &#039;single-featured&#039; )); ?&gt;\n \t\t\t&lt;\/a&gt;\n \t\t&lt;div class=&quot;post-inner-content&quot;&gt;\n \t\t\t&lt;header class=&quot;entry-header page-header&quot;&gt;\n\n \t\t\t\t&lt;h2 class=&quot;entry-title&quot;&gt;&lt;a&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\n\n \t\t\t\t&lt;?php if ( &#039;post&#039; == get_post_type() ) : ?&gt;\n \t\t\t\t&lt;div class=&quot;entry-meta&quot;&gt;\n \t\t\t\t\t&lt;?php sparkling_posted_on(); ?&gt;&lt;?php if ( ! post_password_required() &amp;&amp; ( comments_open() || &#039;0&#039; != get_comments_number() ) ) : ?&gt;\n \t\t\t\t&lt;span class=&quot;comments-link&quot;&gt;&lt;i class=&quot;fa fa-comment-o&quot;&gt;&lt;\/i&gt;&lt;?php comments_popup_link( esc_html__( &#039;Leave a comment&#039;, &#039;sparkling&#039; ), esc_html__( &#039;1 Comment&#039;, &#039;sparkling&#039; ), esc_html__( &#039;% Comments&#039;, &#039;sparkling&#039; ) ); ?&gt;&lt;\/span&gt;\n \t\t\t\t&lt;?php endif; ?&gt;\n\n \t\t\t\t&lt;?php edit_post_link( esc_html__( &#039;Edit&#039;, &#039;sparkling&#039; ), &#039;&lt;i class=&quot;fa fa-pencil-square-o&quot;&gt;&lt;\/i&gt;&lt;span class=&quot;edit-link&quot;&gt;&#039;, &#039;&lt;\/span&gt;&#039; ); ?&gt;\n\n \t\t\t\t&lt;\/div&gt;&lt;!-- .entry-meta --&gt;\n \t\t\t\t&lt;?php endif; ?&gt;\n \t\t\t&lt;\/header&gt;&lt;!-- .entry-header --&gt;\n\n \t\t\t&lt;?php if ( is_search() ) : \/\/ Only display Excerpts for Search ?&gt;\n \t\t\t&lt;div class=&quot;entry-summary&quot;&gt;\n \t\t\t\t&lt;?php the_excerpt(); ?&gt;\n \t\t\t\t&lt;p&gt;&lt;a&gt;&quot;&gt;&lt;?php esc_html_e( &#039;Read More&#039;, &#039;sparkling&#039; ); ?&gt;&lt;\/a&gt;&lt;\/p&gt;\n \t\t\t&lt;\/div&gt;&lt;!-- .entry-summary --&gt;\n \t\t\t&lt;?php else : ?&gt;\n \t\t\t&lt;div class=&quot;entry-content&quot;&gt;\n\n \t\t\t\t&lt;?php\n \t\t\t\tif ( get_theme_mod( &#039;sparkling_excerpts&#039; ) == 1 ) :\n\t\t\t\t\tthe_excerpt();\n\t\t\t\telse :\n\t\t\t\t\tthe_excerpt();?&gt;\n\t\t\t\t\t&lt;p&gt;&lt;a&gt;&quot; title=&quot;&lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php esc_html_e( &#039;Read More&#039;, &#039;sparkling&#039; ); ?&gt;&lt;\/a&gt;&lt;\/p&gt;\n\t\t\t\t&lt;?php else :\n \t\t\t\t\tthe_content();\n \t\t\t\tendif;\n \t\t\t\t ?&gt;\n\n\t\t\t\t&lt;p&gt;&lt;a&gt;&quot; title=&quot;&lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php esc_html_e( &#039;Read More&#039;, &#039;sparkling&#039; ); ?&gt;&lt;\/a&gt;&lt;\/p&gt;\n\n \t\t\t\t&lt;?php\n \t\t\t\t\twp_link_pages( array(\n \t\t\t\t\t\t&#039;before&#039;            =&gt; &#039;&lt;div class=&quot;page-links&quot;&gt;&#039;.esc_html__( &#039;Pages:&#039;, &#039;sparkling&#039; ),\n \t\t\t\t\t\t&#039;after&#039;             =&gt; &#039;&lt;\/div&gt;&#039;,\n \t\t\t\t\t\t&#039;link_before&#039;       =&gt; &#039;&lt;span&gt;&#039;,\n \t\t\t\t\t\t&#039;link_after&#039;        =&gt; &#039;&lt;\/span&gt;&#039;,\n \t\t\t\t\t\t&#039;pagelink&#039;          =&gt; &#039;%&#039;,\n \t\t\t\t\t\t&#039;echo&#039;              =&gt; 1\n \t\t       \t\t) );\n \t\t    \t?&gt;\n \t\t\t&lt;\/div&gt;&lt;!-- .entry-content --&gt;\n \t\t\t&lt;?php endif; ?&gt;\n \t\t&lt;\/div&gt;\n \t&lt;\/div&gt;\n &lt;\/article&gt;&lt;!-- #post-## --&gt;<\/code><\/pre>\n<p><strong>Moderationshinweis:<\/strong> Code-Auszeichnung hinzugef\u00fcgt. Viele Gr\u00fc\u00dfe, Bego<\/p>\n","protected":false},"template":"","class_list":["post-6166","topic","type-topic","status-publish","hentry","topic-tag-content-php","topic-tag-sparkling-theme"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6166\/revisions"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}