{"id":45385,"date":"2016-02-20T21:29:30","date_gmt":"2016-02-20T21:29:30","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/quitar-la-imagen-destacada-del-post-por-completo\/"},"modified":"2016-08-06T00:47:06","modified_gmt":"2016-08-06T00:47:06","slug":"quitar-la-imagen-destacada-del-post-por-completo","status":"publish","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/quitar-la-imagen-destacada-del-post-por-completo\/","title":{"rendered":"Quitar la imagen destacada del post por completo"},"content":{"rendered":"<p>Hola,<br \/>\nQuisiera quitar la imagen destacada del resultado de b\u00fasqueda, es decir que no aparezca por ningun lado. Aunque no la ponga el tema que uso, mantiene el espacio sin sin la imagen.<br \/>\nHe visto que han resuelto el problema en una anterior consulta, pero no me sirve esa soluci\u00f3n.<br \/>\nEn single.php no hay referencia a im\u00e1genes, s\u00f3lo una llamada a contet.php que si contiene informaci\u00f3n de im\u00e1genes.<\/p>\n<p>Adjunto el c\u00f3digo de content.php aqu\u00ed:<\/p>\n<pre><code>&lt;?php\n\/**\n * The template for displaying all single posts.\n *\n * @package Theme name\n *\/\n\n global $themen_options;\n $themen_settings = get_option(&#039;themen_options&#039;,$themen_options);\n if ( is_array( $themen_settings ) &amp;&amp; ! empty( $themen_settings )) {\n    extract($themen_settings);\n}\n\nget_header(); ?&gt;\n&lt;?php\n    $single_post_layout = get_post_meta($post-&gt;ID,&#039;themen_page_layout&#039;, true);\n    $default_post_layout = ($single_post_layout == &#039;default_layout&#039;) ? $default_post_layout : $single_post_layout;\n\n    \/\/ Dynamically Generating Classes for #primary on the basis of page layout\n    $content_class = &#039;&#039;;\n    switch($default_post_layout){\n        case &#039;left_sidebar&#039;:\n            $content_class = &#039;left-sidebar&#039;;\n            break;\n        case &#039;right_sidebar&#039;:\n            $content_class = &#039;right-sidebar&#039;;\n            break;\n        case &#039;both_sidebar&#039;:\n            $content_class = &#039;both-sidebar&#039;;\n            break;\n        case &#039;no_sidebar_wide&#039;:\n            $content_class = &#039;no-sidebar-wide&#039;;\n            break;\n        case &#039;no_sidebar_narrow&#039;:\n            $content_class = &#039;no-sidebar-narraow&#039;;\n            break;\n    }\n?&gt;\n&lt;?php while ( have_posts() ) : the_post(); ?&gt;\n\t&lt;main id=&quot;main&quot; class=&quot;site-main &lt;?php echo $content_class; ?&gt;&quot; role=&quot;main&quot;&gt;\n        &lt;div class=&quot;ap-container&quot;&gt;\n            &lt;?php if($default_post_layout == &#039;both_sidebar&#039;) : ?&gt;\n                &lt;div id=&quot;primary-wrap&quot; class=&quot;clearfix&quot;&gt;\n            &lt;?php endif; ?&gt;\n                &lt;div id=&quot;primary&quot; class=&quot;content-area&quot;&gt;\n\n            \t\t\t&lt;?php get_template_part( &#039;content&#039;, &#039;single&#039; ); ?&gt;\n\n            \t\t\t&lt;?php the_post_navigation(); ?&gt;\n\n                        &lt;?php if($enable_comments_post == 1) : ?&gt;\n            \t\t\t&lt;?php\n            \t\t\t\t\/\/ If comments are open or we have at least one comment, load up the comment template\n            \t\t\t\tif ( comments_open() || get_comments_number() ) :\n            \t\t\t\t\tcomments_template();\n            \t\t\t\tendif;\n            \t\t\t?&gt;\n                        &lt;?php endif; ?&gt;\n\n                &lt;\/div&gt;&lt;!-- #primary --&gt;\n                &lt;?php if($default_post_layout == &#039;left_sidebar&#039; || $default_post_layout == &#039;both_sidebar&#039;) : ?&gt;\n                    &lt;?php get_sidebar(&#039;left&#039;); ?&gt;\n                &lt;?php endif; ?&gt;\n            &lt;?php if($default_post_layout == &#039;both_sidebar&#039;) : ?&gt;\n                &lt;\/div&gt; &lt;!-- #primary-wrap --&gt;\n            &lt;?php endif; ?&gt;\n\n            &lt;?php if($default_post_layout == &#039;right_sidebar&#039; || $default_post_layout == &#039;both_sidebar&#039;) : ?&gt;\n                &lt;?php get_sidebar(&#039;right&#039;); ?&gt;\n            &lt;?php endif; ?&gt;\n        &lt;\/div&gt;&lt;!-- tn-container --&gt;\n\t&lt;\/main&gt;&lt;!-- #main --&gt;\n&lt;?php endwhile; \/\/ end of the loop. ?&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre>\n<p>Gracias por la ayuda que me puedan brindar.<\/p>\n","protected":false},"template":"","class_list":["post-45385","topic","type-topic","status-publish","hentry","topic-tag-imagen-destacada"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/45385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/45385\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=45385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}