ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,691
- Points
- 823
Reputation:
Hi,
I have a custom thread field called "Display order". The custom field is a number , however it looks like it returns as a string in the query, I have tried casting to an integer but nothing seems to work. Essentially the order will look like
1, 10, 11, 12, 13
The finder query
PHP:
Read more
Continue reading...
I have a custom thread field called "Display order". The custom field is a number , however it looks like it returns as a string in the query, I have tried casting to an integer but nothing seems to work. Essentially the order will look like
1, 10, 11, 12, 13
The finder query
PHP:
Code:
$recent_activities = $this->finder('XF:Thread')
->where('user_id', '=', $user->user_id)
->where('discussion_type', '=', 'article')
->order('CustomFields|ProfileOrder.field_value'...
Read more
Continue reading...