WordPress.org

Ready to get started?Download WordPress

Forums

How to embed Page on Index Page (4 posts)

  1. star_lite
    Member
    Posted 3 years ago #

    Hi,
    I want to embed just a part of a Page I created on to the sidebar of my index page.
    The Page (titled="Top Affiliates") has a 3 x 3 table with images(size=42px X 42px) which are links.
    All I want to show are the top 6 images and right under it a link leading to the page.
    So far no luck with the codes i've searched for.

    Using this code in sidebar.php:

    <?php $recent = new WP_Query("page_id=689"); while($recent->have_posts()) : $recent->the_post();?>
           <h3><?php the_title(); ?></h3>
           <?php the_content(); ?>
    <?php endwhile; ?>

    Problem as on now is it has an auto thumbnail which displays but the content aka the table does not. The thumbnail link to the page is spot on.

    Code on Page i created - top-affiliates:

    Testing...
    <table id="affiliates" cellpadding="15px">
    <tbody>
    <tr>
    <td><a><img src="http://localhost/wordpress/wp-content/uploads/2011/05/top_affiliates.jpg" alt="" /></a></td>
    <td><a><img src="images/top_affiliates.jpg" alt="" /></a></td>
    <td><a><img src="images/top_affiliates.jpg" alt="" /></a></td>
    </tr>
    <tr>
    <td><a><img src="http://localhost/wordpress/wp-content/uploads/2011/05/top_affiliates.jpg" alt="" /></a></td>
    <td><a><img src="images/top_affiliates.jpg" alt="" /></a></td>
    <td><a><img src="images/top_affiliates.jpg" alt="" /></a></td>
    </tr>
    </tbody>
    </table>

    In the Visual sections it looks perfect as i want it.

    So how do i embed this page on my sidebar and not show the thumbnail.

    P.S: I do not want to disable the thumbnail plugin.

  2. star_lite
    Member
    Posted 3 years ago #

    My page.php file extension was wrong so it did not display the embeded page. :)

  3. star_lite
    Member
    Posted 3 years ago #

    The thumbnail problem is still pending.

  4. star_lite
    Member
    Posted 3 years ago #

    I forgot to mention, i use this plugin to generate the thumbnails: http://wordpress.org/extend/plugins/thumbnail-for-excerpts/

    There is an exclusion setting but it doesn't help because it disables thumbnail on the Categories Page not the Index page.

Topic Closed

This topic has been closed to new replies.

About this Topic