Pulling data from two pods on one page: Best methods?

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  hsatterwhite 2 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165122

    databell
    Participant
    Post count: 1

    I’m trying to display data from two Pods onto one page and I’m having issues with that. Mainly because I know I need to use multiple loops but with TwentyTen, things have changed so I’m wondering what the best method to do this is from now on. Especially since Pods uses a somewhat different syntax in some cases.

    For example, here’s how I went ahead to find records from the two pods:

    ?>
    <?php

    ?>

    Can that be combined into one?

    Second, all the data I need from the first pod inquiry, Artists, shows up just fine on my page. No issues. The second, which is only used in one place, isn’t displaying. Probably due to no loop. So how would I integrate that now? Like this?

    //The Query
    query_posts(‘posts_per_page=10);

    //The Loop
    if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <?php echo $downloads_name; ?>

    <?php endwhile; else: ?>

    <p>Sorry, no download available</p>

    <?php endif;

    //Reset Query
    wp_reset_query();

    ?>

    Or some other method? This is where I got lost.

    #165123

    hsatterwhite
    Member

    Is your Downloads Pod being used to display downloads related to a particular artist?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting