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 22 replies, 2 voices, and was last updated 8 years, 1 month ago by
Steven Zahm.
-
AuthorPosts
-
07/13/2018 at 10:37 am #467440
Steven Zahm
Keymaster@ Jess
Since this is a temp account, use any fake email address such as help@me.com
07/13/2018 at 10:39 am #467441Jess Cook
ParticipantThis reply has been marked as private.07/13/2018 at 11:43 am #467448Steven Zahm
Keymaster@ Jess
The snippet code is not running because the Code Snippets safe mode has been enabled. Please disable the safe mode by removing the
CODE_SNIPPETS_SAFE_MODEconstant fromwp-config.php.After you disable the code snippet safe mode the custom city field should display.
Hoe this helps, let me know.
07/13/2018 at 12:03 pm #467451Jess Cook
ParticipantYep! That fixed it. Now I can see the field as an option when managing or adding new entries.
I’m still not able to see the changes on the card.php file, though. I’ve followed the steps in how to create a custom template override file and have it in
../wp-content/theme/parent-theme/connections_templates/circled/card.phpI’ve pasted the following code into the card.php file:
<?php
$text = $entry->getMeta(
array(
‘key’ => ‘city’,
‘single’ => TRUE
)
);if ( ! empty( $text ) ) echo '' . esc_html( $text ) . ''; ?>07/13/2018 at 12:12 pm #467452Steven Zahm
Keymaster@ Jess
Please create a copy of the card.php file and rename that copy to card.txt. Attach the renamed copy to a reply so I can see. Thanks!
07/13/2018 at 12:15 pm #467453Steven Zahm
Keymaster@ Jess
Oh, question… you are not literally using the
parent-themefolder are you? If you are, that is only a placeholder for the actual theme folder.So in your case it should be something like this:
../wp-content/themes/benevolence-wpl/connections_templates/circled/card.php07/13/2018 at 12:38 pm #467455Jess Cook
Participant07/14/2018 at 10:12 am #467485Steven Zahm
Keymaster@ Jess
I had to go back and reference the docs on custom template override files…
connections_templatesneeds to beconnections-templates. Change the underscore to a hyphen.Does that help?
07/16/2018 at 9:41 am #467579Jess Cook
ParticipantSuccess!! Thanks so much!
07/16/2018 at 10:10 am #467583Steven Zahm
Keymaster@ Jess
Great to hear! Sorry, I did not notice the error in the file path sooner.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
