• using
    <?php echo do_shorcode(” MY_SLIDE_ID “); ?>
    inside of page.php, home.php and index.php not work fine, show all images one bellow of the other…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Can you provide me with the link please, so I can have a look.

    Thread Starter srfrankie

    (@srfrankie)

    here is my code of index.php: if try to use a shortcode in home.php not work

    <!DOCTYPE html>
    <html>
      <head>
        <meta charset="utf-8">
        <title><?php bloginfo('name');?></title>
      </head>
      <body>
        Index
        <!-- in the line bellow include a page form, in the page the shortcode work's -->
        <?php include 'page.php'; ?>
        <?php
      			while ( have_posts() ) : the_post();
    
      			// get_template_part( 'template-parts/page/content', 'page' );
            ?> <a href="<?php the_permalink();?>"><h2><?php the_title(); ?></h2></a>
            <?php the_excerpt(); ?>
            <?php
      			endwhile; // End of the loop.
      			?>
    
            <!-- in the index.php not work the same line of code -->
            <?php echo do_shortcode("[slide-anything id='63']"); ?>
      </body>
    </html>
    
    Plugin Author simonpedge

    (@simonpedge)

    Are you getting any Javascript errors?
    (press CTRL + SHIFT + J to display your JavaScript console)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘problem using in theme’ is closed to new replies.