Sort order

This topic contains 26 replies, has 3 voices, and was last updated by  Christina Morris 8 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #282263

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The query is not sorting correctly, it HAS to be the server, the query is being tried direct on the DB which means it does not even care if WordPress is installed or not.

    #282266

    Christina Morris
    Expired Member
    Post count: 53

    Then I need to write a ticket, but again, I don’t understand.

    I don’t understand why it’s the same on both servers – my local and the bluehost one.
    But it IS returning the featured listing, right?
    Is it supposed to keep the featured at the top when you change the sort from the dropdown, like a pre get posts?

    #282267

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    if there was no error it would work. I don’t understand why wouldn’t trust us, seeing that the code is working for another member, but you trust a support guy from bluehost.

    We can’t fix it unless they fix it 1st. Ask them to test the query Stiofan provided and they will see it is not working as it should. If they are not helpful, I’d strongly suggest to move to a better hosting provider.

    Shared server (especially the low end one like bluehost) are really not a good choice for an application plugin like GeoDirectory anyway…

    https://wpgeodirectory.com/docs/server-requirements/

    Thank you

    #282268

    Paolo
    Site Admin
    Post count: 31206

    If you change sorting it will not keep featured on top…

    It will sort the listings as requested.

    #282274

    Christina Morris
    Expired Member
    Post count: 53

    What I am saying is that I think it is working the way it’s supposed to… But I want to alter it.

    That’s why I am questioning.

    Right now, when you add the sort options look:
    http://www.seniorcomfortguide.com/wordpress/senior-living/assisted-living/
    it gives you the featured on top, right?
    And when you sort AZ or ZA it does it, right?
    What I want, is for the featured sort to do what it’s doing, then instead of showing the listing after the featured “Gateway” as “Vista Springs” I want it to show “Abbewood” like in the AZ sort.

    I am not trying to challenge you. I know Blue host sucks but I am just working on the site and I will be recommending another hosting package.

    #282331

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    OK, please check now:
    http://www.seniorcomfortguide.com/wordpress/senior-living/assisted-living/ (u have no featured listings in this cat)
    http://www.seniorcomfortguide.com/wordpress/senior-living/ (you do here)
    Stiofan

    #282410

    Christina Morris
    Expired Member
    Post count: 53

    That is it! What did you do? Can you tell me so I can look for it, is it in the functions file?

    Now though, that “null” is appearing in the content area for places who have no description.

    I feel bad even asking!

    #282763

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Its at the bottom of the functions file.

    The null thing is actually the description, if u edit it u see its null, if i remove it and save it goes away, how did u add them? Maybe bulk export and change then reimport?

    Stiofan

    #282891

    Christina Morris
    Expired Member
    Post count: 53

    Yes it was an import. Will do!
    Thanks!

    #282894

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are welcome 🙂

    #283323

    Christina Morris
    Expired Member
    Post count: 53

    Hi! Back again, how can I do the same for the custom post type tables like here:

    http://www.seniorcomfortguide.com/wordpress/senior-services/adult-day-care/

    and

    http://www.seniorcomfortguide.com/wordpress/hospitals/hospitals/

    I see that you have a $table variable in the code you added to functions… what tables should I specify?
    Thanks

    #283417

    Christina Morris
    Expired Member
    Post count: 53

    Update! I realized I had to set the featured sort order for the AZ to take effect, so I got it going on!
    Thanks and sorry to bug you AGAIN! 🙂

Viewing 12 posts - 16 through 27 (of 27 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount