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.
Tagged: 8.5.13, extension, form, parent_category, shortcode
- This topic has 10 replies, 2 voices, and was last updated 6 years, 11 months ago by Steven Zahm.
04/05/2016 at 1:34 am #371670
Have been reading through the forums, and am a little confused regarding form shortcodes and categories, and link.
Users must be logged in to submit their profile.
this is my situation I have 2 parent categories Parent 1 and Parent 2.
I would like only parent 2 and its sub-categories to be available to form users.
I can use the the connections_form shortcode to achieve this using parent_category=’n’.
but if I do this other issues I will encounter are
- the link extension will not link user to email
- users will not be able to edit their profile using the widget
- add new profile link in widget needs to be redirected to my shortcode page
- the edit form will contain the parent categories
is there a way to either solve teh above or manually include (hardcode) only the one parent category in the autogenerated form page?
thanks again for all the great support
dom04/05/2016 at 9:32 am #371712
re: the link extension will not link user to email
Correct, if you are puttin Form on its own page using the shortcode, submissions will not link to the logged in user. It will add a new entry. To use Form and Link you have to follow the instructions in the documentation for configuration.
re: users will not be able to edit their profile using the widget
Correct, this is because entries submitted via your custom page will not link the user. The user must submit their entry using the internal page that the links resolve to.
re: add new profile link in widget needs to be redirected to my shortcode page
Sorry, this is not possible because any submission to a custom page is not supported and the entry will not be linked.
re: the edit form will contain the parent categories
Sorry, I do not understand this point. Could you clarify?
re: is there a way to either solve teh above or manually include (hardcode) only the one parent category in the autogenerated form page?
[connections]shortcode. It will be passed to Form and used to limit the category selection.
Hope that helps!04/05/2016 at 11:17 am #371727
Hi Steven thanks for the quick reply,
yes it helped, the form now lists only the parent category.
I am using circled template, with the category select enabled.
I have tried various shortcodes but nothing seems to affect the category search.
my shortcode is as follows [connections exclude_category='4' parent_category='47' template='circled' enable_category_select=true .....more stuff...]
04/05/2016 at 12:16 pm #371734
- I would like only category 47 and its children to appear in the dropdown. is this possible?
- Also is there a way for the category select to say select a category instead of being blank?
re: I have tried various shortcodes but nothing seems to affect the category search.
How specifically do you want it affected? If this is all you mean; “I would like only category 47 and its children to appear in the dropdown. is this possible?” Change the shortcode to this:
[connections category=47 exclude_category='4' parent_category='47' template='circled' enable_category_select=true .....more stuff...]
You may or maynot need to remove the
exclude_category='4'option. That really depends on what you are doing with it.
Also, make sure all plugins are up to date, Connections, Form and Gridder.
re: Also is there a way for the category select to say select a category instead of being blank?
the category=47 works great to display only the parent category cards, but all the categories still show up in category select menu.
I get the following warning in the console
I tried disabling plugins, updated to latest version of circled, and went to 2015 default theme, renamed customized template section. I have checked my functions.php and disabled all snippets to see if anything could have affected the code, not sure where else to look.
and still had all categories in the category select menu and a blank first row
the source code output is as follows:
form class=”cn-form” id=”cn-cat-select” action=”” method=”get”><select class=”cn-category-select cn-enhanced-select” name=”cn-cat” onchange=”this.form.submit()” data-placeholder=”Select Category”>
<option value=’0′>Show All Categories</option>
<option class=”cn-cat-level-0″ style=”padding-left: 7px !important;” value=”1″>Other</option>
<option class=”cn-cat-level-0″ style=”padding-left: 7px !important;” value=”46″>Partners</option>
<option class=”cn-cat-level-1″ style=”padding-left: 19px !important;” value=”4″>Partner Associations</option>
<option class=”cn-cat-level-0″ style=”padding-left: 7px !important;” value=”47″>Skills</option>
<option class=”cn-cat-level-1″ style=”padding-left: 19px !important;” value=”6″>Accounting</option>
everything above accounting should not be listed.
one of circled demo sites: http://www.womenintesting.com/directory/ also shows same blank first row in their category select menu.
as a test I installed Gridder and the select category appeared, but so did the other categories that were not children of 47
any ideas would be great.
dom04/05/2016 at 2:53 pm #371753
Not sure what happened, (deleted uploaded files) the please select category is now appearing in the category select menu:)
just need to determine how to show only display the one parent.
dom04/05/2016 at 3:33 pm #371759
Can you please delete the installed version of Circle and download a fresh copy from your purchase history and install it then force refresh the browser?
Also, what is the fill exact shortcode you are using?04/05/2016 at 7:36 pm #371769This reply has been marked as private.04/06/2016 at 11:26 am #371864
Ok, sorry! I forgot! you need to add
enable_category_by_root_parent=trueto the shortcode too.04/06/2016 at 11:45 am #371879
Final question on topic, can the parent category name be hidden? so that only the children categories are listed?
You cannot reply to this support topic. Please open your own support topic.