Themia Lite
Search results in a grid (1 post)

  1. stoiko
    Posted 3 years ago #

    How can I make the results from the search show in grid view as a gallery using only the post's main image? This is what I have done so far, but they go in a list, not a grid:


    <?php while (have_posts()) : the_post(); ?>
    <div <?php post_class('post') ?>>
    <a>"> <?php echo inkthemes_main_image(); ?> </a>
    <h2 class="title" id="post-<?php the_ID(); ?>"><a>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    <?php endwhile; ?>

    [Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.