cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
get_cforms_entries sort
get_cforms_entries doesn't sort in descending order
February 10, 2013
5:49 pm
Barry T.

I am trying to use the get_cforms_entries() API call in a template script. While sorting in ascending order seems to work, sorting in descending order does not. I have added logic to sort the array of entries returned by the API call in the template iteself, but it would be nice if this worked as described.

Also, the documentation for the API call which is viewable here: /wp-admin/admin.php?page=cforms/cforms-help.php#hook is incorrect; it says that a form can be selected by name when it is actually selectable by form id. I initially tried to use the value that the API returned in the "name" column to pass to the function, but that did nothing; I made one last attempt using the id and that worked, so maybe updating the help page might save someone else some time.



Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)