Forums

query_string + multiple word tag not showing up. (1 post)

  1. Quakebum
    Member
    Posted 1 year ago #

    I've created a custom page template that will display posts for based on tags that is typed in the custom field.

    Currently, if the word tag is single word, it will display, but if used something like: tag1+tag 2, it won't work.

    Here's my code:

    `$what_tag = get_post_meta($post->ID, 'what_tag', $single);
    $lastposts = query_posts('category_name=MainCats&gdsr_sort=thumbs&tag='.$what_tag);`

    What do I need to do so I could use multiple word tags?

    gdsr_sort is from GDStar Rating.
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic