matti87
Forum Replies Created
-
Forum: Plugins
In reply to: [Dynamic Conditions] checkbox with “5” options and dynamic conditions?!Now it works, here is my solution with a shortcode:
<?php function check_user_role( $atts, $content = null ) { $user_id = get_current_user_id(); $user_info = get_userdata($user_id); if($user_info) { echo ' '.implode(', ', $user_info->roles).','; } } add_shortcode( 'user_role', 'check_user_role' ); ?>
shortcode (shows the user roles):
[user_role][/user_role]
- This reply was modified 4 years, 4 months ago by matti87.
Forum: Plugins
In reply to: [Dynamic Conditions] checkbox with “5” options and dynamic conditions?!Hello rto,
thank you, but that doesn’t work.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Advanced Link – link options in frontend?Ah, thank you very much.
The CSS hook was also my idea, I hoped, there is another way to remove them. ??
best regards! :))
Hi hwk-fr
Is it also possible to remove the “edit” and “remove” option for a link-field?
Also the “add layout” for non-admins?best regards
mattiI only disabled “User Role Editor” for a short time.
Hey!
Now it works. ??
I will test it soon again, but I don’t have discovered the bug on the way to your solution.
Yes, I use the shortcode.
Example:
user will be registered, it sets automatically a post type item in a individual post type and the user can change the information in the frontend of his post type item. I think you’re right about elementor. you should build a widget for elementor, would be fantastic, your work is great. I would pay for this widget. :))
I test this code in the next time, thank you so much for your help.
Thanks for your help.
Also I am using elementor, theme is “yootheme”, function.php uses some filter and some “hooks”, but I removed some of them to see (which have influence on the post type), but nothing has changed.
here are some screens..
https://ibb.co/qmPQZTz
https://ibb.co/0GsC0p1
https://ibb.co/sHGWcVY
https://ibb.co/QdtC5tt