Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/10/2015, 13:39
Avatar de franciscomarin
franciscomarin
 
Fecha de Ingreso: junio-2009
Ubicación: Terrassa, BCN, CAT
Mensajes: 2.414
Antigüedad: 14 años, 10 meses
Puntos: 327
Respuesta: Condicionante según la categoría en el functions.php

Tienes razón, me comí parte del código que puse. Este es el bueno:

Código PHP:
Ver original
  1. function featuredtoRSS($content) {
  2. global $post;
  3. if ( has_post_thumbnail( $post->ID ) ){
  4. $content = '' . get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'float:left; margin:0px 15px 15px 0px;' ) ) . '' . $content;
  5. }
  6. return $content;
  7. }
  8.  
  9. add_filter('the_excerpt_rss', 'featuredtoRSS');
  10. add_filter('the_content_feed', 'featuredtoRSS');

Voy a probar tu código y te digo algo.

Última edición por franciscomarin; 07/10/2015 a las 13:45