Home › Forums › Front-end Issues › can't print taxonomy field name › Reply To: can't print taxonomy field name
sorry, maybe it’s for my bad english…
i tested both your solution but nothing… : (
I created a select to display my taxonomy in single user profile
(http://imagizer.imageshack.us/a/img921/9871/kDCADK.jpg)
as you can see in the image (http://imagizer.imageshack.us/a/img922/3117/6vwoDC.jpg), I associated the “training pratico” course to “utenteprova”.
I want to get id and name of taxonomy of current user
(in this case UTENTEPROVA has TRAINING-PRATICO with ID 7)
I need to redirect users after login, so I need something like this
'redirect' => get_option('siteurl').'/corsi/training-pratico
but I can’t display slug training-pratico
another possible solution could be
$corso_id = get_field('corso', 'user_'.$current_user->ID );
'redirect' => get_option('siteurl').'/?corsi='.$corso_id
it return /?corsi=7
but it’s a not found page.. Do it exist a permalink to term of taxonomy?
In admin is:
wp-admin/edit-tags.php?action=edit&taxonomy=corsi&tag_ID=7&post_type=formazione
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5
— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.