• Resolved [email protected]

    (@sheyess-heyescom)


    I have such a headache from trying to figure out my problem. And I really can’t understand why it would be so complicated.

    I’m using a page for many reason that I can’t explain, but what I want to be able to do is list posts on a page and break them out into there categorizes

    https://www.ultimatecloth.com.php5-18.websitetestlink.com/store/

    So I have 3 categories, which have posts that I want to list under each title
    ..

    1. Cleaning Cloths
    2. Combo Packs
    3. Magic Mops

    How do I call all the data (title, content, metadata) thats associated with a post onto a page

Viewing 1 replies (of 1 total)
  • Thread Starter [email protected]

    (@sheyess-heyescom)

    <?php query_posts( array( 'post_type' => array('post', 'WHATEVER') ) ); ?>
    
      <?php while (have_posts()) : the_post(); ?>
    
    <?php endwhile; ?>

    I found the solution, not sure how I would explain it ?? but man I’ve spent about 6 hours trying to figure this out, this is not explained very well anywhere that I could see, and seems to be a VERY VERY common problem people have.

    The above query pulled all the posts from a post type called WHATEVER and listed them on a “Page”.

Viewing 1 replies (of 1 total)
  • The topic ‘How to list posts on a page to include image etc’ is closed to new replies.