Support » Themes and Templates » Pull images and text to homepage content boxes

  • Hi there,

    I am using the Cool theme and have three content boxes running along the bottom. They are configured to pull the first lines of text from three separate pages as ‘teaser’ copy. The first lines of text are pulled from the first text box on these landing pages.

    If I place an image in this same area on the landing pages the images do not get pulled and do not appear in the content ‘teaser’ boxes of the homepage. Is it possible to simply plug absolute image urls into the index.php file or is there another way to fix this issue?

    Website is

Viewing 4 replies - 1 through 4 (of 4 total)
  • It very much depends upon what code is being used to create the content for those boxes. My guess is that the relevant code uses something like the_excerpt() so you could try posting your teaser text and image in the Excerpt box on each Edit Post page.

    Thanks esmi

    The index.php page uses the following code for each of the three boxes:

    <div class=”grid_4 alpha”>
    <?php query_posts(‘page_id=’.get_option(‘column1’));
    while (have_posts()) : the_post(); ?>
    <h3 class=”title-icon1″>
    <?php the_title(); ?>
    <?php the_content_rss(‘cut’, TRUE, ”, 19); ?>
    ” class=”view-more”> 

    <?php endwhile; ?>

    The only difference are the names of the div classes. The line in question is <?php the_content_rss(‘cut’, TRUE, ”, 19); ?> which, if I swap out with an absolute image url I can manually override the problem. Are there changes I can make to that code to allow it to pull images as well as text? Thanks.

    Try <?php the_content_rss('cut', TRUE, '', 19, 2); ?>


    This was really helpful. I plugged in <?php the_content_rss(‘cut’, TRUE, ”, 19, 2); ?> and nothing seemed to happen, but having read the link you sent I tried a few different variations. I plugged in ‘3’ instead of ‘2’ and that seemed to do the trick.

    Unless there are any problems you foresee with that coding, thank you so much for fixing a big problem of ours.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pull images and text to homepage content boxes’ is closed to new replies.