I’m utilizing a plugin that generates a shortcode to show recordsdata from a Dropbox folder. I must show the shortcode on a selected web page, however will probably be completely different for every consumer.
Subsequently I’ve created a customized subject for every consumer, known as ‘view_files_shortcode’.
I believed I may then name this consumer customized subject on the web page, and it could show no matter was set for every consumer. Nonetheless it simply shows the precise shortcode.
Presently I’m utilizing this:
<?php if ( is_user_logged_in() ) {
$userid = get_current_user_id();
get_userdata( $userid );
get_field('view_files_shortcode', 'user_'. $userid );}?>
<?php the_field('view_files_shortcode', 'user_'. $userid ); ?>
Can anybody inform me how one can make the shortcode execute? Thanks.