This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 6 years, 6 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
February 5, 2014 at 2:51 am 15078
Tareq Hasan I have read in the documentation that it is possible to display custom post fields using shortcodes, e.g. using the shortcode [wpuf-meta name="your_meta_key"] for simple fields. Is it also possible to display custom user profile fields using shortcodes? So for example; I might want to have a custom user profile field called 'favorite-color' as part of a profile form. So I would want to be able to display that field for the current logged in user within a page or post (I don't mean the whole profile, only selected fields). Thanks Robert
February 5, 2014 at 11:48 pm 15100
Tareq Hasan Tareq Hasan

Sorry, currently no shortcodes available for user meta.

By editing your theme little bit with just using this lines:
[php]<?php echo get_user_meta( $PUT_THE_USER_ID, ‘META_KEY_HERE’, true ); ?>[/php]

February 8, 2014 at 12:46 am 15195
campbellr campbellr

Hi Tareq

I use the Toolset developer plug-in which has shortcodes to display user
meta. Have you any knowledge of this plug-ins (sometimes called ‘Types’)?

Can you tell me if the custom user fields created by your plug-in are to the
same format as the standard WP user fields? Or do they use a special
prefix? If they are standard then the Toolset plug-in should be able to
display them using their shortcodes.



February 8, 2014 at 1:13 am 15212
Tareq Hasan Tareq Hasan

Yeah I heard about types, although didn’t tried it yet. There is no prefix in the pro version, although it was in the free version. I guess using types would just do fine.

Viewing 3 Posts - 1 through 3 (of 3 total)