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.8, extension, list widget, order, widget pack
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by
Steven Zahm.
-
AuthorPosts
-
01/25/2016 at 2:48 pm #362449
Cole Schweikhardt
ParticipantSteve, within the law firm site we’ve communicated on a number of times, we are using the List widget to deliver the Attorneys in each category (Partner, Of Counsel, etc) in the right sidebar of individual profiles and the main Attorneys grid.
Being a law firm, everyone is ordered by seniority. We added a custom field “order” to make this happen in the grid and directory.
However, is there a way we can make the list widget to the same?
You can see how the Attorneys grid page and this widget are working now right here: http://ccshkt.com/our-attorneys/
01/26/2016 at 10:31 am #362562Steven Zahm
Keymaster@ Cole
Well, the only way to do that would be to change the PHP which sets the default sort order in the widget to be sort on the order meta key/value. You would have to open the
class.widget-list.php
file found here:
../wp-content/plugins/connections-widgets/includes/
Look for this line:
'order_by' => $instance['randomize'] ? 'id|RANDOM' : array( 'sort_column', 'last_name', 'first_name' ),
Change it to this:
'order_by' => $instance['randomize'] ? 'id|RANDOM' : 'meta_key:order|NUMERIC_ASC',
Save and overwrite the original file.
For increased permanence the widgets are cached so you will not see the change take effect until after the fragment caches expires. You can force it to expire by making a settings change on the Widgets admin page.
Hope that helps! Let me know.
01/26/2016 at 10:40 am #362564Cole Schweikhardt
ParticipantThanks Steve. I was afraid it would require editing the widget.
Question: When we update Connections in the future, will we need to re-edit that widget each time?
We’ve made so many tweaks here and there, I have to keep track so we don’t suddenly break the functionality with a simple update.
01/26/2016 at 11:36 am #362568Steven Zahm
Keymaster@ Cole
re: When we update Connections in the future, will we need to re-edit that widget each time?
No, only when the Widget Pack is updated.
re: We’ve made so many tweaks here and there, I have to keep track so we don’t suddenly break the functionality with a simple update.
A quick scan over topics/replies it appears the only changes were shortcode options (sorting by the meta key/value) and a minor CSS tweak added to a custom CSS plugin for the Gridder template. So far seems like updates should be pretty safe to do unless I missed something a bit more critical than that.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.