Custom Post Type & Multiple Columns (3 posts)

  1. AJ Troxell
    Posted 5 years ago #

    Currently I have my index.php set up to display posts in three columns with the following code:

    I would like to take the current code from my store.php template that displays only posts from my custom post type "store", code seen here:

    And combine the two so that my custom post type template wil display the posts using the 3-column layout. I just cant seem to get it working.

  2. coopersita
    Posted 5 years ago #

    You'd have to subsitute line 10 from the store:

    <?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post(); ?>

    For lines 10 to 24 of the homepage template.

    Just make copies, I may be wrong.

  3. AJ Troxell
    Posted 5 years ago #

    I think that may have worked. Thank you. I was making it very over-complicated, over thinking it. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.