Results 1 to 2 of 2

Thread: Listings By Tag -> loop-ad.php -> have_posts() tag modifications

  1. #1
    Thread Starter
    Newbie musixman's Avatar
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Listings By Tag -> loop-ad.php -> have_posts() tag modifications

    Hello,

    I'd like to limit the listings displayed in loop-ad.php to posts that have the tag "guitar".

    Originally loop-ad.php contains the query

    Code:
    <?php if(have_posts()) : ?>
    
        <?php while(have_posts()) : the_post(); ?>
    I tried modifying to limit the query based on tag below (but it doesn't work)

    Code:
    <?php query_posts("tag=scripts"); if (have_posts()) : while (have_posts()) : the_post(); ?>
    I then would look at the category where i know an item with the "guitar" tag exists but it just shows "no results"

    Any ideas where I'm going wrong?

    Thanks.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,693
    Thanks
    166
    Thanked 3,387 Times in 3,258 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Add city name in loop-ad.php
    By melg in forum ClassiPress General Discussion
    Replies: 2
    Last Post: March 20th, 2011, 12:15 AM
  2. About my modifications...
    By bkirkham23 in forum Help Using ClassiPress
    Replies: 1
    Last Post: April 3rd, 2010, 07:04 PM