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.1.5, csv import, custom fields
- This topic has 6 replies, 2 voices, and was last updated 11 years, 8 months ago by
Robinton.
-
AuthorPosts
-
12/04/2014 at 9:30 pm #311790
Robinton
ParticipantI’m importing a CSV file and need some custom fields to match to map some of the imported fields to. I’ve read enough posts to know I may need the Custom Metabox and Fields API, but I have no idea what that is, or where to find it, much less how to use it.
(Yes, I’ve been to https://github.com/Connections-Business-Directory/Connections – and that didn’t help, so if what I need is there I didn’t recognize it.)
Please tell me from scratch, assuming I know nothing:
1) Exactly what I need in order to create and use custom fields in Connections.
2) Where I can find whatever it is I need.
3) How to use whatever it is in order to create custom fields, have them available to import CSV fields into, and have them show up in the front end – or where to find this information, if it’s already spelled out somewhere.
Thank you.
Robinton
12/05/2014 at 11:08 am #311811Steven Zahm
Keymaster@ Robinton
re: Please tell me from scratch, assuming I know nothing:
There’s no way for me to do this … it’s all done via coding right now as there is no point and click interface. The best I can do, is if you can code is to refer you to read the inlice code comment of the free extensions that are available which add custom fields. Here are the links:- http://connections-pro.com/add-on/education-level/
- http://connections-pro.com/add-on/income-level/
- http://connections-pro.com/add-on/languages/
This one is a bit more complex because it creates a custom field rather than using one of the field supported by the API:
All of these are pretty well commented.
As for adding custom field for import, that is also very doable but none of the above extensions extend the CSV import so data can be imported into those fields.
Here’s a link to a third party plugin for Connection which does add support for importing data into the custom field being added.
Specifically these lines:
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L22
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L23
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L56
- https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php#L60
Hope that helps you get on your way!
12/05/2014 at 11:45 am #311815Robinton
ParticipantThank you, Steven.
On https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php I see a large block of PHP code, including the four lines you specifically called attention to.
However, I don’t see a link to download the plugin.
How do I download the plugin – or what do I do with this block of code? Is there some place I should insert it?
Thank you.
Robinton
12/05/2014 at 12:51 pm #311821Steven Zahm
Keymaster@ Robinton
Go to this page, bottom of right-hand column, there is a download button.
12/05/2014 at 1:29 pm #311827Robinton
ParticipantSteven,
By “this page” I presume you mean https://github.com/jeremyBass/connections-levels/blob/master/connections-levels/includes/class-connections-levels.php
In the bottom right I see links for Status, API, Training, Shop, Blog, and About, but no button for download. I went to the API, Training and Shop links, and again saw no download button. And I don’t see one on THIS page either.
Please advise.
Thank you.
Robinton
12/06/2014 at 10:06 am #311856Steven Zahm
Keymaster@ Robinton
Sorry, I didn’t paste the link, not an an excuse…
12/06/2014 at 10:10 am #311857Robinton
ParticipantThank you.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
