How to embed Page on Index Page
-
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="https://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="https://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.
- The topic ‘How to embed Page on Index Page’ is closed to new replies.