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.18, entry order, extension
- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by
Steven Zahm.
-
AuthorPosts
-
07/06/2016 at 10:21 am #381749
bebe
ParticipantYou don’t have a forum just for this extension, so I placed my question here.
I’m using Custom Entry Order, but I need to overwrite it on one page only.
I’ve tried the custom shortcode
[connections image_width=225 image=siteshot order_by='last_name|SORT_ACS']
but it’s not working.
How do I overwrite this custom order just on one page?
07/06/2016 at 11:43 am #381755Steven Zahm
Keymaster@ bebe
Sorry, but there is no way to override it. The extension alters the database query at a low level to enforce the order. The only way I can think of attempting this is to remove the filter which alters the query.
Try this:
Install the Code Snippets plugin.
Add a new snippet with the following code:
add_filter( 'cn_entry_query_clauses', 'cn_remove_custom_entry_order_on_page', 9 ); function cn_remove_custom_entry_order_on_page( $clauses ) { if ( 7938 == get_queried_object_id() ) { remove_filter( 'cn_entry_query_clauses', array( 'Connections_Custom_Entry_Order', 'queryClauses' ) ); } return $clauses; }Save and Activate this snippet, selecting the
Only run on site front-endoption.This should do the trick, but keep in mind that this will affect every Connections instance on the same page, ie. widgets.
Hope that helps!
07/06/2016 at 12:03 pm #381768bebe
ParticipantNot working.
This is the page that needs modification. http://absolutewebdesigns.co/kreia/inspector-members/member-directory/ Does anything in the snippet need to be altered to specify that page id (39)?
07/06/2016 at 1:06 pm #381773Steven Zahm
Keymaster@ bebe
oops… Sorry, I left out one instruction. Change
7938in the code snippet to the page ID,39. -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
