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.8.13, content-box, custom fields, getContentBlock
- This topic has 4 replies, 2 voices, and was last updated 9 years, 3 months ago by
Paul Littlewood.
-
AuthorPosts
-
06/25/2014 at 11:24 am #294989
Paul Littlewood
ParticipantHi,
I have installed this plugin you wrote:
https://github.com/Connections-Business-Directory/Custom-Metaboxes-And-Fields/blob/master/cn-metabox-field-demo.phpThe metaboxes show up fine on the backend but none of the content is displayed in my template (Slim Plus 2.0).
I can get content from fields created in the “Custom Fields” metabox to show up by placing this in card.php from my template:
$entry->getContentBlock( $atts['content'], $atts, $template );
And checking the “Custom Fields” check boxes in Settings > Display.However I’m not sure how to get content from the fields in the metaboxes installed by the plugin to show up.
Many thanks for any help.
06/25/2014 at 12:16 pm #294992Steven Zahm
Keymaster@ Paul
That demo plugin actually does not contain the necessary filters to add to support for the content box. I’ll try to remember to add them so the demo is more complete. When I made the custom fields demo, the content block support didn’t exist.
You might want to check out the Education Level or Income Level extensions instead. They have all the required filters and are pretty well documented.
It odd you had to add that line of code to Slim Plus, it should already exist on line 63 in the card.php file.
Hope that is helpful.
06/25/2014 at 12:32 pm #294993Paul Littlewood
ParticipantThanks for your reply Steven. Yes I think it would be a useful resource to have the plugin updated at some stage.
Actually I already also tried the Income Level extension. It still doesn’t show anything on the front end:
http://wptest.pjlittlewood.co.uk/connections-test/
(I have checked the “Income Level” check boxes on Settings > Display).It odd you had to add that line of code to Slim Plus, it should already exist on line 63 in the card.php file.
Yes you’re right actually, it appeared twice when I added the code. I had thought it needed adding because it wasn’t displaying at first, but it was a page caching issue.
06/25/2014 at 2:17 pm #295029Steven Zahm
KeymasterSign, seems like there was a bug with both Education Level and Income Level which prevented the display of the content box … I must have made a change after testing or something. You can pull the fixed version from Github until I get a moment to release the updates to wordpress.org.
https://github.com/Connections-Business-Directory/Education-Levels
https://github.com/Connections-Business-Directory/Income-LevelsAfter you install the updates, you have to enable them on the display settings again.
Sorry about that!
06/25/2014 at 5:46 pm #295036Paul Littlewood
ParticipantNo problem, I appreciate you looking into it so quickly.
The extensions are great I can work out what I need from them.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.