The code below is almost working. This code works for showing 5 last posts from all categories, I adapted to show post_types, but it shows the same posts.
categoria = taxonomy
anuncios = post_type
[Code moderated as per the Forum Rules. Please use the pastebin]
Also, I want to add the RSS for every taxonomy, the code I have works nice, but only in single template (a bit hard-coded):
<p><?php echo get_the_term_list( get_the_ID(), 'categoria', "In: " ) ?> <a href="<?php bloginfo('url') ?>/?feed=rss2&categoria=<?php $terms_as_text = strip_tags( get_the_term_list( $wp_query->post->ID, 'categoria', '', ', ', '' ) );
echo $terms_as_text; ?>" >RSS</a> </p>
Just need to insert the code above beside every taxonomy title and show the correct posts. Almost there, but I need some help!