Echo when certainfield is not empty
-
Hi,
On my website I am using wp members plugin.
I want to only display some content when a custom field is not empty.
Field is called wpmem_rnr. It is hidden during registration and can be filled by an admin.
Using the shortcode [wpmem_field field=”wpmem_rnr”] will show the field to the loggedin user.
Now I want to echo a specific text, only when this field is filled.
I was using:function show_coin () { if( get_field('wpmem_rnr') ) { echo get_field('wpmem_rnr') . ' Ja het werkt' ; } }But this does not do the trick.
Any help will be appreciated.
Regards,
Arjan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Echo when certainfield is not empty’ is closed to new replies.