I’m stuck. Using a modified theme from Empire, I have a column on the front page which calls the latest blog posts that works fine but not exactly how I’d like it to work. It includes the image in the post.
Does anyone know how to call only the text above the <!–more–> tag and exclude images added in the post?
Right now all I can do is insert the image below the more tag as a work around. I’d rather just exclude images from the front page all together. Here is the div from the main page:
<h3>From the Blog</h3>
query_posts(‘category_name=General’); global $more; $more=0;?>
<?php while (have_posts()) : the_post(); global $more; $more=0;?>
<h4>” rel=”bookmark” title=”Go to <?php the_title_attribute(); ?>”><?php the_title(); ?></h4>
<?php the_content(‘Read more…’, $more_link_text, $strip_teaser, $more_file ); ?>
<p class=”meta”>Written on <?php the_date(); ?></p>
<?php endwhile; ?>
Is there anything I can do?
Any bit of help is greatly appreciated.
- The topic ‘How can I exclude an image from the main page?’ is closed to new replies.