Help!! and is this possible?? (while loop question)
Posted: Wed Oct 13, 2010 6:00 pm
I am looking to start a sort of aggregator where I will be pulling RSS feeds from music blogs and having them directly posted onto my (wordpress) blog. The main goal is to have only the anchor tags pulled onto my page, and more specifically, anchor tags containing the extension *.mp3. I know I have to do this inside of the while loop on my blog post, but I am new to PHP and I really do not know where to start.
To visualize, my final idea is to have links to externally hosted music files coming onto my page via RSS from other music blogs, but I would like to cut out all of the <p> <h1> <h2> <img> ect tags (everything but ANCHOR tags) so my page is a very simple music aggregator linking only to music files.
To visualize, my final idea is to have links to externally hosted music files coming onto my page via RSS from other music blogs, but I would like to cut out all of the <p> <h1> <h2> <img> ect tags (everything but ANCHOR tags) so my page is a very simple music aggregator linking only to music files.
Code: Select all
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>