The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Getting all posts with an specific tag_name (2 posts)

  1. Maggical
    Posted 6 years ago #

    Hi there, I want to select all of the posts on my wordpress that have the "Destacado" tag assigned.

    I'm currently selecting them by category, but want to change that. How can I do this?

    I currently have this:

    $recent = new WP_Query( 'showposts=' . $number . '&category_name=' . $category );

    And tried this but won't work (it shows all of the posts):

    $recent = new WP_Query( 'showposts=' . $number . '&tag_name=Destacado' );

    This won't work either, same result as above:

    $recent = new WP_Query( 'showposts=' . $number . '&tag_name=destacado' );

    Any help?



  2. Michael
    Forum Moderator
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic