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.
- This topic has 6 replies, 2 voices, and was last updated 6 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
-
06/04/2017 at 9:07 pm #425024
shanna
GuestIn order to filter by both location and category at the same time, i have set up a separate page for the location – for example https://columbiavalley.com/directory/golden/
On that page i am limiting results to the category for this location –
[connections category=144 order_by="meta_key:order|NUMERIC_ASC,sort_column" enable_category_select='FALSE' enable_search='FALSE' cnec_display_categories='FALSE']
This works fine for the base page, but when i go to a category, such as –
https://invermere.com/directory/golden/cat/arts-entertainment/photography/
the results are no longer limited to category 144 (the Golden location) – the category restriction in the shortcode seems to be ignored.
This forces me to use the following, which is not very maintainable –
https://invermere.com/directory/golden/?cn-cat=164
and this workaround does not fix the problem for breadcrumb links, which i am unable to alter.
Ideally i would just like to see the categery=”” parameter in the shortcode work for category links, as you would expect.
06/05/2017 at 9:16 am #425097Steven Zahm
Keymaster@ shanna
re: the results are no longer limited to category 144 (the Golden location) – the category restriction in the shortcode seems to be ignored.
Which is not being limited? The actual entries of the category results?
I did look at the page but it seems you decided to go a different route. If you could setup a page showing the issue I’ll take a look. You can create a new page and just not put it in your sites nav and give me a direct link.
06/09/2017 at 7:18 pm #425523shanna
GuestHi Steven, Sorry for the delay, as i thought i’d get an email when someone responded.
The page at https://columbiavalley.com/directory/golden/
includes this shortcode :
[connections category=144 order_by="meta_key:order|NUMERIC_ASC,sort_column" enable_category_select='FALSE' enable_search='FALSE' cnec_display_categories='FALSE']
and that page successfully filters out everything except category 144 (Golden).
However, when you go to a category based on that page, such as
https://columbiavalley.com/directory/golden/cat/arts-entertainment/photography/
…there is no filtering for category 144, as specified in the shortcode.
06/10/2017 at 11:00 am #425567Steven Zahm
Keymaster@ shanna
RE: i thought i’d get an email when someone responded.
Yes, this should happen, perhaps it was block and filtered into your spam/junk mail folder.
Ahhh… I see. The the permalink
/cat/arts-entertainment/photography/
for the will override thecategory
shortcode filter so it is possible to display the selected category.I’m guess the intent is to only display the entries with both 144 (Golden [a location]) and the chosen category (business type). Correct?
This is possible but not by using the
permalinks
. I see you’ve made your own category menu… If you update the links to use queries instead of permalinks this will work. Here’s a working example:https://columbiavalley.com/directory/golden/?cn-cat-in%5B%5D=144&cn-cat-in%5B%5D=164
Hope this makes sense, let me know.
06/13/2017 at 5:32 pm #425874shanna
GuestThanks Steven. That’s kind of where i was headed already, but i didn’t include the location category in the cn-cat-in parameter. Using both cats seems to make it work.
I really do wish it worked a simpler way (from a pretty permalink url), but at least this functions – it’s just a bit hard to maintain by ID rather than slug.
Thanks for your help :)
06/13/2017 at 6:27 pm #425886shanna
GuestHi again Steven,
Actually, on further inspection, this does not work. When i used ?cn-cat-in it does not include sub-categories.
Using ?cn-cat-in also does result in the correct links for breadcrumbs or the category links on the individuals listings.
Back to the drawing board. It would be nice if the url just did what you’d expect it to do.
06/14/2017 at 12:56 pm #426104Steven Zahm
KeymasterRE: on further inspection, this does not work. When i used ?cn-cat-in it does not include sub-categories.
Right, works just like core WP does for posts… this will filter entries that are in both categories. It will not traverse the descendants.
RE: on further inspection, this does not work. When i used ?cn-cat-in it does not include sub-categories.
How so? I visited the site… the permalinks for the individual categories are displaying entries in that category. Ohh… I’m guessing you still want a way to enforce the
category=144
when clicking a permalink. I really do not see a way for that to ever work… a permalink is the canonical link to a category or an entry making it subject to two more more other categories will that. This is why the queries exist. This is modelled very heavily on how WP itself works with categories.I suppose you might be able to try using one of the filters, like city. The category permalink/shortcode option does not override one of these filters allowing a category to be filtered.
Hope this helps!
-
AuthorPosts
You must be logged in to reply to this topic.