WordPress.org

Ready to get started?Download WordPress

Forums

Gridly Theme Support (4 posts)

  1. stiwdio
    Member
    Posted 1 year ago #

    Wonder if anyone can help me with my query on this theme.
    I would like to repeat the grid on another page, say 'projects' for instance but when I create a template using the index page code and attach it to a page nothing shows up.

    Any ideas?

  2. stiwdio
    Member
    Posted 1 year ago #

    <?php if (have_posts()) : ?>
    <div id="post-area">
    <?php while (have_posts()) : the_post(); ?>	
    
       		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		 <?php if ( has_post_thumbnail() ) { ?>
    
           <div class="imagewrap">
             <div class="gridly-image"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'summary-image' );  ?></a></div>
             <div class="gridly-category"><p><?php the_category(', ') ?></p></div> </div>
    		  <?php } ?>
           			<div class="gridly-copy"><h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
    
    <?php the_excerpt(); ?> 
    
                   <p class="gridly-link"><a href="<?php the_permalink() ?>">read more &rarr;</a></p>
             </div>
           </div>
    
    <?php endwhile; ?>
    </div>
    <?php else : ?>
    <?php endif; ?>
    
    <?php next_posts_link('<p class="view-older">View Older Entries</p>') ?>

    This is the code

  3. sharmendra
    Member
    Posted 1 year ago #

    can you help me set up the page because i absolutely have no idea how to just set it up!

  4. gareth gillman
    Member
    Posted 1 year ago #

    Are you adding the template code to the top of the file e.g.

    /* Template Na,e: Portfolio */

    Is the page blank or is something stopping the code (look in view source in your browser).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags