• Resolved JohnNadeau

    (@johnnadeau)


    We have pages that are dynamically generated each time a user clicks on a listing. Those pages are based upon a Custom Template

    We have some special listings that we’d like to place BELOW the title in the form of a Gallery using do_shortcode.

    In the Custom Template I’m able to insert them ABOVE the title but need some help/guidance on where/how to place the Gallery do_shortcode to get it BELOW the title and to inherit the theme layout/margins/etc.

    Link Sample Page (incorrectly above the Title): https://lakepath.com/idx/mls-14018724-94_chicago_ave_south_haven_mi_49090

    Currently, I have it below the role”=main” line as follows:

    <div id="content" class="site-content" role="main">
    <?php echo do_shortcode('[gallery link="none" columns="6" size="thumbnail" ids="87,86,84,85,82,83"]'); ?>
    <?php
    // Start the Loop.
      while ( have_posts() ) : the_post();
         // Include the page content template.
         get_template_part( 'content', 'page' );
         // If comments are open or we have at least one comment, load up the comment template.
         if ( comments_open() || get_comments_number() ) {
         comments_template();
         }
      endwhile;
      ?>
      </div><!-- #content -->
      </div><!-- #primary -->
      <?php get_sidebar( 'content' ); ?>
    </div><!-- #main-content --

Viewing 1 replies (of 1 total)
  • Thread Starter JohnNadeau

    (@johnnadeau)

    Sometimes it’s so simple ??

    Needed to add to beginning gallery code:
    <div class=”entry-content”>

    and to the end of the gallery code:
    </div><!– .entry-content –>

    Also added a text line & hyperlink… So complete looks like this:

    <div class=”entry-content”>
    <p style=”text-align: center;”>Click Here To See Our Featured Properties </p>

    <?php echo do_shortcode(‘[gallery link="none" columns="6" size="thumbnail" ids="87,86,84,85,82,83"]‘); ?>
    </div><!– .entry-content –>

Viewing 1 replies (of 1 total)
  • The topic ‘Where to place Gallery Do_Shortcode in Custom Template’ is closed to new replies.