jeudi 5 février 2015

Display only current page -> posts tags in page


I am having one page for example sample page. I am displaying 3 posts in that page. All 3 posts having 2 tags so total 6 tags.


Now I want to display all those 6 tags in sample page , I have tried below code :



<?php echo wp_get_post_tags(1 , $args ) ?>


But above code printing Array instead of post tag. Above 1 is my post id. Also I want to know that how I can pass all post ids of which tags I want to retrieve.





Aucun commentaire:

Enregistrer un commentaire