Viewing 5 posts - 1 through 5 (of 5 total)

Sort by Featured Members @ Top of Search – Default Search Criteria

Hi Premiumpressers I've messed about with Premiumpress for years and remember in previous editions, we had ability to set default search results "sort by" featured members first .. So you know my skill level, I'm not a web developer or coder - but do understand basic python, functions etc (self taught), so can normally successfully find and edit most .php / .html files etc - but couldn't code / design everything.. My goal is setting "featured members" to appear at top of search results automatically. With my directory website - membership and listings are free / featured members $20 .. Personally feel appearing on front page of national website is not a big enough advantage to charge small local businesses featured listing fee. I've located the code specifying the "sort by" button content in file : URL>wp-content>themes>DT9>search-top.php and moved "Featured" code to top .. ( <?php echo __("Featured","premiumpress") ?> -- Placed full reordered code excerpt at bottom of msg .. ) After reordering search-top.php button code & uploading to host - when selection button now does display featured listing first - but default "sort by" criteria is still not forcing featured members to top of results. Any advice / time / help is appreciated .. :-) :-)

<div class="dropdown-menu" aria-labelledby="btnGroupDrop1"> <?php echo __("Featured","premiumpress") ?> <?php echo __("Title","premiumpress") ?> <?php echo __("Date Added","premiumpress") ?> <?php echo __("Populatiry","premiumpress") ?> <?php echo __("Rating","premiumpress") ?> <?php if(THEME_KEY == "at"){ ?> <?php echo __("Auction Ending","premiumpress") ?> <?php echo __("Price","premiumpress") ?> <?php }elseif(THEME_KEY == "cp"){ ?> <?php echo __("Times Used","premiumpress") ?> <?php echo __("Expiry Date","premiumpress") ?> <?php }else{ ?> <?php echo __("Price","premiumpress") ?> <?php } ?>

Created: November 2, 2018 at 6:05 pm

  • Marie
    November 5, 2018 at 9:43 am


    are you referring to this section ?

  • Christopher
    November 9, 2018 at 9:29 pm

    Hi Marie.

    Sorry for delay replying. Have been busy with night classes over the last few days.

    Yes, that is correct ..

    I’m looking to default sort all listings – with “featured” appearing first & everyone else 2nd.

    Any advice is appreciated. Have spent ages trying to sort it myself / before asking.

    Thank you 🙂 🙂 🙂 -) 🙂

  • Christopher
    November 14, 2018 at 9:32 am

    ^^^ BUMP ^^^ I’m still unable to resolve this issue ( Featured listings appearing at top of search results by default. )

    Also – is there a method for displaying more than 12 listings per page by default with Directory Press?

    Would like to display 36 – 48 listings per search page / appear on map in 1 location.

    THANK YOU !!! 🙂 🙂 🙂 🙂

  • Christopher
    November 19, 2018 at 11:57 am

    NOTE : have worked out how to display >12 listings per search result.
    Was achieved by ” settings > reading > display number of blog posts > 48 ” – obviously more intelligent premiumpressers than myself will already know this.

    Still hopeful someone might know method for displaying featured members 1st on search results. Sorry for mentioning again – wanted to refocus thread & inform I’d worked out previous (above) Q.

    Wondering if the code might be contained within :
    >> URL /wp-content/themes/DT9/framework/orderby/main.php
    although I’m not intelligent enough to follow the full everything contained within.

    If anyone has an example of edited code which could achieve featured members 1st, I’d be eternally grateful.

Copyright © 2010-2020 PremiumPress Limited.

secure payments