Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //será para poder recuperar o ID do post, e manipular fora do loop
- $tags = array();
- ?>
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <?php
- foreach(get_the_tags(get_the_ID()) as $tag) {
- $tags[] = $tag->slug ;
- }
- ?>
- <?php endif; endwhile?>
Add Comment
Please, Sign In to add comment