How to display NF Custom Meta Key fields values on page/post?
-
Hello from Belgium ??
Is there a way to display user Custom Meta Key recorded by a Ninja form on a User Page/Post?
The register form creates a post and displays fields name with {field:organisation_1639675230226}.. no problemo.
But if I want to display updated information (after an updated user form for ex.) It is possible to code something in PhP to get the Meta Key Value on a post/page?
I search for hours to find a way to do that with NF before posting in this forum.
And I try so many codes that I forget what is my name ^^<?php // try to show only 'organisation' NF custom field on a sepcific user post $user_id = the_author_meta( 'ID' ); $key = 'organisation'; $single = true; $organization = get_user_meta( $user_id, $key, $single ); echo $organization; ?>
=> return only the User ID… but not showing ‘organisation’ Custom Meta Key added in Ninja Form (Register User)
If someone find an answer for that, I would be the happier guy you never seen before ??
[THX]
Olivier
- The topic ‘How to display NF Custom Meta Key fields values on page/post?’ is closed to new replies.