Pregunta

He creado un tipo de mensaje personalizado llamado artículo. Puedo crear artículos y todo está funcionando bien. Sin embargo, tengo preguntas sobre las alimentaciones.

1) ¿Cómo puedo ver los últimos artículos que he creado en un alimento?

2) ¿Cómo puedo ver todos los blogs y artículos de alimentación, todo en uno?

¿Fue útil?

Solución

Se puede añadir este código a su archivo functions.php

function myfeed_request($qv) 
{
   if (isset($qv['feed']) && !isset($qv['post_type']))
   {
     $qv['post_type'] = get_post_types($args = array(
                'public'   => true,
                '_builtin' => false
     ));
     array_push($qv['post_type'],'post');
     return $qv;
   }
}
add_filter('request', 'myfeed_request');

Consulte esta página aquí para más detalles

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top