WordPress.org

Forums

Category Post Plugin Needs Help (1 post)

  1. jalalsj
    Member
    Posted 6 years ago #

    Hi

    I'm using the 'Category Post' plugin to display posts from a certain category onto my sidebar at sozocinemas.com. My problem is this:

    I need to bring the excerpt (in this case 'the_content_rss' element) below the title of the movie. Currently its positioned above it, and no matter how much I try it won't position correctly. Here is the code I'm using:

    echo '<table float="left" style="margin:0 0 10px;padding:0 5px 8px -10px;border-bottom:1px solid #E8E8E8" width="100%"><td><div><li class="cat-posts-item-' . $post->ID . '"> ' . '<img align="left" width="96" height="60" style="padding-right:5px" src="' . get_post_meta($post->ID, 'thumbnail', true) . '"></div> <a href="' . get_permalink($post) . '">' .  $post->post_title . the_content_rss('', TRUE, '', 8) . '</a></td></table>';
    		if( $excerpt ) {
    			echo '<br />';
    			if ($post->post_excerpt!=NULL)
    				echo $post->post_excerpt;
    			else
    				the_content_rss('', TRUE, '', 8);
    		}

    Please, note that I have manually turned off the 'post excerpt' function in the plugin, as that way it comes out of the table.

    I know this could be very easy. I'm a designer, struggling in php :). I tried googling, too.

    Help would be really appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic