Monday, February 6, 2023
HomeWordPress Developmentphp - Tips on how to execute a shortcode inside a customized...

php – Tips on how to execute a shortcode inside a customized subject?


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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments