• example link:
    http://deardaddy.org/sermons/april-4th-2010/

    If you check out the right sidebar, you will notice there are 2 separate audio files attached to this sermon. There should not be.

    If I upload another audio file then 3 will appear on the page.

    It could be the theme display code that I am using which is as follows:

    <?php
    $connected_posts_ids = p2p_get_connected('from', get_the_ID(), 'podcasts');
    query_posts(array('post__in' => $connected_posts_ids,'post_type'=>'podcasts'));
    while ( have_posts() ) : the_post(); ?>
    
    <object height="24" width="200" type="application/x-shockwave-flash" name="audioplayer_1" style="outline: medium none; visibility: visible;" data="http://deardaddy.org/wp-content/plugins/audio-player/assets/player.swf?ver=20080825040617" id="audioplayer_1">
    <param name="bgcolor" value="#FFFFFF"><param name="wmode" value="transparent">
    <param name="menu" value="false">
    <param name="flashvars" value="animation=yes&encode=no&initialvolume=60&remaining=yes&noinfo=no&buffer=5&checkpolicy=no&rtl=no&bg=E5E5E5&text=333333&leftbg=CCCCCC&lefticon=333333&volslider=666666&voltrack=FFFFFF&rightbg=B4B4B4&rightbghover=999999&righticon=333333&righticonhover=FFFFFF&track=FFFFFF&loader=009900&border=CCCCCC&tracker=DDDDDD&skip=666666&soundFile=<?php echo get_post_meta(get_the_ID(), 'podcast_audio_file_upload', true); ?>&playerID=audioplayer_100"></object>
     <br />Or, if you prefer, click the download link to save the sermon audio file to your computer.<br />
    Podcast:<br /> <a href="<?php echo get_post_meta(get_the_ID(), 'podcast_audio_file_upload', true); ?>"><?php echo get_post_meta(get_the_ID(), 'podcast_audio_file_upload', true); ?><br /></a><br />
    <?php
    endwhile;
    wp_reset_query();
    ?>

    Is it an error with my code that I am using, or do you think it could be an error with the plugin?

    I am using the latest dev version from yesterday .2

    http://wordpress.org/extend/plugins/posts-to-posts/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Anointed

    (@anointed)

    This does not happen with just the podcasts which are connected to sermons. I have locations connected as well, and if I add a new location then I end up with 2 location links showing up on the page as well.

    The output code for connected locations is very similar to the above code.

    Thread Starter Anointed

    (@anointed)

    OK, I’m pretty stupid sometimes.

    Problem solved by changing the query, took me a few days to figure it out, but all is well now.

    You should have used the p2p_list_connected() function I showed you before.

    Thread Starter Anointed

    (@anointed)

    🙂 yes, that is how I managed it. After struggling for some time, I finally started reading the post-to-post code itself to understand what it was doing. Once I did that, the function you mentioned made perfect sense to me. Everything is working perfectly on the front end now.

    I have many ideas for the back end management. Have written a detailed concept which I can email if you like. I think it has some really good ideas.

    Here is my finished project on the sandbox site:
    http://deardaddy.org/sermons/

    The only thing I have left on the front end is in the ticket:
    http://wordpress.org/support/topic/402145?replies=1

    example of what I have in action so far using multi-loops with separate templates per post_types.
    http://deardaddy.org/series/unidos-messages/

    It’s rather complicated though, as I don’t know of anyone else in this situation as 3.0 is so new. Curious if you have any ideas.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Posts 2 Posts] found an isue with the related posts data’ is closed to new replies.