Ver Mensaje Individual
  #8 (permalink)  
Antiguo 28/08/2014, 01:31
PitMatson
 
Fecha de Ingreso: julio-2011
Mensajes: 84
Antigüedad: 12 años, 9 meses
Puntos: 3
Respuesta: categoría como argumento en shortcode

Quizás sea ésta:

function mo_show_post_snippets_shortcode($atts) {
$args = shortcode_atts(array(
'post_type' => null,
'post_count' => 4,
'image_size' => 'small',
'title' => null,
'layout_class' => '',
'excerpt_count' => 100,
'number_of_columns' => 4,
'show_meta' => false,
'display_text' => true,
'show_excerpt' => true,
'hide_thumbnail' => false,
'row_line_break' => true,
'terms' => '',
'taxonamy' => 'category'
), $atts);

$output = mo_get_post_snippets($args);

return $output;

}

add_shortcode('show_post_snippets', 'mo_show_post_snippets_shortcode');