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.
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.
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.
01/25/2016 at 2:29 pm #362448RebeccaGuest
I just made a test site for a staff directory. When I click on the top individual’s name, I am taken to her profile page with more detailed info. However, most of the other individual profile pages are not working — when I click other names from the main page, I am taken to a page that says “No results.” Seems like a bug because there must be results if their name appears on the main page?
I’ve tested this in Chrome, Firefox, and IE — all the same.
Thanks for any help or advice!01/25/2016 at 3:17 pm #362453RebeccaGuest
Update- I’ve noticed that when I use just [connections], the individual profiles work fine: http://www.coloradochildrep.org/connectionstest/
When I use custom sorting, some or all individual profiles show “No results”: http://www.coloradochildrep.org/connectionstest2/
Here’s how I have my custom sorting:
[connections category="8"]01/25/2016 at 4:24 pm #362456
Those shortcodes are not custom sorting… when you use the id shortcode option you limiting the results to just that entry. Similarly, using the category shortcode option you will be limiting the results to the entries assigned to the categories you specified. I think what you are looking for is the order_by shortcode option.
Does that help?01/25/2016 at 4:59 pm #362460RebeccaGuest
Hi Steven — Thanks for the quick response! I’m attempting to use the solution found here: https://wordpress.org/support/topic/plugin-connections-display-contacts-in-a-custom-order. (Certain job titles at the top, then a department in alpha/default order, then another job title, etc.) The sorting works fine; it displays exactly as I want on the main page. But clicking on names produces “No results.” Here’s another example: http://www.coloradochildrep.org/about-ocr/board-of-directors/. Main page looks perfect, clicking on names shows “No results.” Thanks again!01/25/2016 at 5:04 pm #362464RebeccaGuest
One more thought — It seems as though the first/top individual’s name clicks through to her profile fine; subsequent individuals then show “No results.” When I click on a name, is it looking only to the first shortcode for a matching result, hence “no results?”01/26/2016 at 9:59 am #362558
re: When I click on a name, is it looking only to the first shortcode for a matching result, hence “no results?”
Ahhh, that is the issue. When you gave me the shortcodes you were using, I thought those were variations that you had tried, not that you were using them all on the same page.
When viewing a entry detail/profile view, that page will only render a single instance of the shortcode to prevent a duplicate from showing for each instance the shortcode was used on the page. When the single instance is used, it uses the options from the first shortcode. In your case, the
id="2"will be applied and there is only one entry with that ID so you will get a no results for all other instances of the shortcode on the page when you click thru to the detail/profile view.
Hope that helps, let me know.01/26/2016 at 12:04 pm #362571RebeccaGuest
This worked perfectly! Thanks! I ended up with:
[connections category=10 order_by='meta_key:order|NUMERIC_ASC' template='profile']
This let me filter by a category, order by my custom field “order,” and use a different template from elsewhere on our site. One note for others trying this – because I had more than 10 individuals, I needed to do the numbering in the “order” field as 01, 02, 03… instead of 1, 2, 3…
Thank you again! Wonderful plugin.01/26/2016 at 12:49 pm #362581
re: One note for others trying this – because I had more than 10 individuals, I needed to do the numbering in the “order” field as 01, 02, 03… instead of 1, 2, 3…
NUMERIC_ASCoption should take the numeric string and make it an actual integer so it should sort correctly. I had not ever needed to prefix the digits. Something is up… but I since it works, its all good :)
re: Thank you again! Wonderful plugin.
Thanks! If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
You cannot reply to this support topic. Please open your own support topic.