Skip Navigation

[Resolved] Sorting of two fields

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 7 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#621150

Hello and good evening from Germany.

I have a question about sorting ads. I intend to publish on my website premium and normal listings. However, the premium ads are always on top and after the premium ads are the normal listings following.

Sorting order:

1. Premium ads sorted by creation date
2. Normal ads soertiert by creation date

#621238

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Lisa,

Please elaborate the question with more details, especially this sentence:
Normal ads soertiert by creation date

I assume we are talking about this case:
Sorting order:
1. Premium ads sorted by creation date ASC
2. Normal ads sort by creation date DESC

If it is, I don't think it is possible within one single view, in your case, you can create two different views:
1st view) list the premium ads posts, sorted by creation date ASC
2nd view) list the normal ads posts, soert by creation date DESC

And put display both views in the same page.

The forum ‘Types Community Support’ is closed to new topics and replies.