User avatar-ACF fields

Did you try something like this? User variables <?php // Define user ID // Replace NULL with ID of user to be queried $user_id = NULL; // Example: Get ID of current user // $user_id = get_current_user_id(); // Define prefixed user ID $user_acf_prefix = ‘user_’; $user_id_prefixed = $user_acf_prefix . $user_id; ?> Display avatar <?php $avatar … Read more

If user is logged-in display/hide widgets ( siteorigine) [closed]

Probably simplest, though not always optimal, is to use CSS. In the vast majority of WordPress themes (ones assigning body classes), logged-in and home will be applied to the body tag automatically, when appropriate, and every widget gets a unique ID wherever it’s displayed. So, if I wanted to hide a given widget to logged … Read more

wp_editor embed shortcode not working within my plugin

The WordPress OEmbed should show in the editor by default. If it doesn’t, I suspect that you need to enqueue some scripts and styles on your page where you are using wp_editor. Eg: wp_enqueue_script(‘editor’, false, false, false, true); wp_enqueue_script(‘quicktags’, false, false, false, true); wp_enqueue_script(‘wplink’, false, false, false, true); wp_enqueue_script(‘wpdialogs-popup’, false, false, false, true); wp_enqueue_style(‘wp-jquery-ui-dialog’, false, … Read more