• bobdeo

    (@bobdeo)


    Hi,

    I need to display a list of post using a UTW tag. I want to use a WP Page for customise the theme. So I try to use query_posts function but we can’t specify a tag name or ID in this function…

    I found a beginning here :
    global $tablepost2tag;
    $wpdb->get_results( "SELECT post_id FROM $tablepost2tag WHERE tag_id = $tag" );

    …but I don’t know the follow… Does anyone can help me ?

    Thanks

Viewing 1 replies (of 1 total)
  • climber00

    (@climber00)

    i got it working on a post using this:

    $query =’showposts=10&tag=’.$_GET[‘tag’];
    if(isset($_GET[‘paged’])) $query.= ‘&paged=’.$_GET[‘paged’];

    query_posts($query);
    if (have_posts()) : while (have_posts()) : the_post();

    hope this helps

Viewing 1 replies (of 1 total)
  • The topic ‘UTW tags and query_posts’ is closed to new replies.