How to execute a shortcode within a custom field?

Using the_field(); will just return the content of that field (guessing it’s just text field?). <?php if (is_user_logged_in()) { $userid = get_current_user_id(); get_userdata($userid); $shortcode = get_field(‘view_files_shortcode’, ‘user_’ . $userid); } ?> <?php echo do_shortcode($shortcode); ?>

Problem with a shortcode generating a error [closed]

If the error goes away when you change the theme, it’s possible that the issue is related to the child theme. It’s important to note that deleting the child theme will not delete any information stored in the database, as that information is stored separately from the theme files. However, if you delete the child … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)