Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.5.2, Excerpt Plus, shortcode, template
- This topic has 3 replies, 3 voices, and was last updated 10 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
10/28/2015 at 5:14 pm #352242
Ramona McCoy
ParticipantI’ve created a couple pages that need to sort some grants and contracts in descending order. On one page it works. On the other it doesn’t. The code is the same for both except for the categories that are excluded from each page. I’m attaching a screenshot for the code for each page. You can view the actual pages here – http://www.orices.org. The problem page is the Current Contracts. It is supposed to sort in descending order by start date. (I’ve used the ‘birthday’ field for this and changed the label to Start Date) You’ll see that it doesn’t order the entries correctly. On the Current Grants page it does.
Can you tell me what I’m getting wrong?
Thanks.
Attachments:
You must be logged in to view attached files.10/29/2015 at 11:31 am #352335Steven Zahm
Keymaster@ Ramona
You have errors in the shortcode…
To fix, first switch the editor to the Text tab.Make sure you do not have any HTML tags in or around the shortcode. If HTML is mixed in, that breaks the WP shortcode parser. If the shortcode or any of its options are copy/pasted into the Visual editor, the underlying HTML from the page it was copied from will also be pasted. This is not a Connections issue but rather how the Visual editor works.
All the shortcode options should be in lowercase. Example,
enable_Noteshould beenable_note.Although not strictly necessary, the shortcode option values should be either single or double quoted. Example,
enable_note='true'.Make sure straight quotes are being used. The WP shortcode parser does not support fancy quotes. This is very difficult to see on screen and come from copy/pasting from a webpage into the Visual editor. If you type your quotes manually into the Text editor the proper quotes will be used.
The
exclude_categoryshortcode option, when multiple ID/s are being excluded, you must use quotes. Example:exclude_category='4,1,3,16'Hope that helps! Let me know.
11/02/2015 at 2:13 pm #353121Ramona
GuestHi,
Thanks for the response. I checked the code and there wasn’t any html in it. I made everything lower case, replaced all quotes or added them as needed but the sort is still not working. Current code is pasted below. YOu can see the sort here – http://orices.org/current-contracts/
Any other ideas? Thanks!
Ramona
[connections template='excerpt-plus' enable_note='true' enable_search='true' enable_note='true' enable_category_select='false' show_org='true' image='none' image_fallback='none' str_custom_fields='none' exclude_category='4,1,3,16' show_dates='true' order_by='birthday|sort_desc']
11/03/2015 at 11:26 am #353232Steven Zahm
Keymaster@ Ramona
Oh, I see now…
First, you are using an old version of Connections. Second, I see the entries you are trying to sort by birthday are organizations. Technically organizations can not have a birthday even though one can be added. Currently the birthday sort sorts on a “legacy” field and the birthday is not saved to this legacy field for organization.
That said…
The next update to Connections will contain a change which will sort on the correct field regardless of entry type. It’ll actually allow sorting by any of the date types. This update is planned for this Friday/weekend. You’ll need this update in order to get the sort that you want.
Hope that helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
