Skip to content

Instantly share code, notes, and snippets.

@imran-khan1
Last active July 3, 2019 07:11
Show Gist options
  • Save imran-khan1/6472292b66d731e597309856e0c70774 to your computer and use it in GitHub Desktop.
Save imran-khan1/6472292b66d731e597309856e0c70774 to your computer and use it in GitHub Desktop.
<?php
get_header(); ?>
<div id="main-content" class="main-content">
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<table>
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
?>
<tr>
<td><?php the_post_thumbnail();?></td>
<td><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a></td>
<td><?php the_content(); ?></td>
</tr>
<?php
endwhile;
?>
</table>
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- #main-content -->
<?php
get_sidebar();
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment