Forums

podPress
Player won't display within category list (2 posts)

  1. Nevets321
    Member
    Posted 4 months ago #

    Hopefully the title isn't confusing. I have code I am using to display posts of only a specific type in my template (all the podpress posts). My code is:

    <ul>
    <?php
    global $post;
    $args = array( 'category' => 32 );
    $myposts = get_posts( $args );
    foreach( $myposts as $post ) :	setup_postdata($post); ?>
    	<li>
    		<article>
    			<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    			<?php the_excerpt(); ?>
    			<a href="<?php the_permalink(); ?>">Read More</a>
    		</article>
    	</li>
    <?php endforeach; ?>
    </ul>

    When I do a search on my site the player shows up and search.php uses the_excerpt() so I'm not sure why that isn't working for my page. Any help on how to fix my code would be greatly appreciated.

    To clarify: the content of the post does show up, just not the player.

    http://wordpress.org/extend/plugins/podpress/

  2. ntm
    Member
    Posted 4 months ago #

    Do get_the_excerpt(), get_the_content(), the_content() or the_excerpt() get called before that loop?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags