i want to include another php file "1.php" in my php file "my.php" between two shortcode [restrict] and [/restrict].
I try this codes but the answer did not work
<?php echo do_shortcode( '[restrict]' . include '1.php' . '[/restrict]' ); ?>
Plese
I suggest you use the output buffer functions:
Hope this helps!