WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type & Multiple Columns (3 posts)

  1. AJ Troxell
    Member
    Posted 3 years ago #

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

    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:
    http://pastebin.com/HcCNmnPJ

    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
    Member
    Posted 3 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
    Member
    Posted 3 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

Tags

No tags yet.