an
groups-icon

Setting featured and frontpage listing to show top when searching

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Chue Vann
    0 points
    Beginner

    I was able to add code to the _1.php file and make the frontpage listings or featured listings to show on top when someone perform advance search. But I was not able to make both to show on top at the same time.

    The reason I want to make both to show on top is because when people buy the enhancements, they expect their listing to be better on placement.

    Here is the code I am adding to make either featured listing or frontpage listings to show on top and it works fine.

    <option value=”featured*asc” <?php if($core_admin_values[‘display’][‘orderby’] == “featured*asc”){ echo “selected=selected”; } ?>>Featured (Featured First)</option>

    <option value=”frontpage*asc” <?php if($core_admin_values[‘display’][‘orderby’] == “frontpage*asc”){ echo “selected=selected”; } ?>>Frontpage (Frontpage First)</option>

    So, now I am trying to make both to show at the same time, but frontpage listings to show first and before the featured listings.

    I use this code but it doesn’t work.

    <option value=”frontpage*asc&orderby=featured&order=desc” <?php if($core_admin_values[‘display’][‘orderby’] == “frontpage*asc&orderby=featured&order=desc”){ echo “selected=selected”; } ?>>Frontpage and Featured(Frontpage and Featured First)</option>

    So what’s the right code to make both to show at the same time, but frontpage listings show top, featured listings show second, and the rest listings will show.

    September 14, 2013 at 8:38 pm

562

Views

0

Replies