Viewing 1 replies (of 1 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    Hi there,

    Yes, you certainly can. You’ll need to edit your index.php file and add the following function to use the shortcode there:

    <?php echo do_shortcode( '[time-restrict-repeat][/time-restrict-repeat]' ); ?>

    Obviously, you’ll need to edit the shortcode to meet your needs, but the do_shortcode function is what allows you to execute a shortcode in a theme file.

Viewing 1 replies (of 1 total)
  • The topic ‘How to insert the shortcode in the main page (index.php)?’ is closed to new replies.