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: 0.7.9.3, category, force_home, home_id
- This topic has 3 replies, 2 voices, and was last updated 8 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
10/24/2013 at 1:58 am #272199
Alex Hendren
ParticipantI have referenced a similar post, however I did not completely understand that author’s intent. Additionally I believe that my case is much more simple.
I would like to know the recommended method for displaying categories in an intended order. Example: I would like to display my categories in order by id of (1: Doctor , 2: Front Office , 3: Technicians). However category sorting is overridden and the results are a mangled mix of categories where results are displayed by the individual’s name alphabetically.
The following fixes my problem on the directory page:
[connections category='1'] [connections category='2'] [connections category='3']
However this is not a correct implementation. If you were to click an individual’s name in the directory on the single page the entry would be repeated 3 times, maybe that in itself is an error?
Thank you for your help!
10/24/2013 at 12:25 pm #272226Steven Zahm
Keymaster@ Alex
Nope, not a bug or error. By default, the links will route back to the current page. What you need to do is define a new location for the links to route to. Think of it as a “results” page of sorts where you only have the
[connections]
shortcode.The easiest thing to do is create a new “results” page with the
[connections]
shortcode. It can be named anything you want. Now, go to the Connections : Settings admin page and change the Directory Home Page to the new “results” page. lastly, just update you current page with the category shortcodes to force the links to route to the directory home page, like so:[connections category='1' force_home=TRUE] [connections category='2' force_home=TRUE] [connections category='3' force_home=TRUE]
If you need to point the links to a page other than the directory home page for your setup. Alternatively you would create a new “results” page with the
[connections]
shortcode. It can be named anything you want. Take note of the new page ID. Lastly, update the category shortcodes to force the links to route to the new page instead, like so:[connections category='1' home_id=X] [connections category='2' home_id=X] [connections category='3' home_id=X]
X would equal the new page ID.
I hope that makes sense. Connections is pretty flexible so many things can be done a couple ways depending on what you’re trying to accomplish.
-
This reply was modified 8 years, 9 months ago by
Steven Zahm. Reason: Remove stray strong HTML tags
10/24/2013 at 4:10 pm #272261Alex Hendren
ParticipantYour first suggestion worked flawlessly. I actually really like the flexibility that the first approach offers.
I did try the second approach just out of curiosity, but was unable to materialize any results.
Thank you very much for your extensive feedback!
10/24/2013 at 4:35 pm #272265Steven Zahm
Keymaster@ Alex
No problem, glad to hear it worked! Looks like I had stray HTML tags in the second option. I removed them so it should work too.
-
This reply was modified 8 years, 9 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.