[Plugin: Posts 2 Posts] found an isue with the related posts data
-
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
Viewing 4 replies - 1 through 4 (of 4 total)
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.