Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Content above loop on homepage only (http://forum.bytesforall.com/showthread.php?t=11412)

hubbiida Nov 27, 2010 04:54 AM

[SOLVED] Content above loop on homepage only
 
Hi,
I am attempting to show some content above the loop on the homepage only, using the following code I got from this post

http://forum.bytesforall.com/showthr...ABOVE+the+LOOP

I have placed some content sandwiched by a condition, as follows:

<?php if( is_home() ) { ?>

some content

<?php } ?>

This works well in that it doesn't display the content on pages I create and on posts, but when I click on the "older entries" link at the bottom of the excerpts on the homepage, and it goes to (for example) . . . wordpress/?paged=2, the content is still displaying as it does on the homepage. Is there some way to prevent this and have only excerpts appear on pages linked to "older entries?"

Here is the site I'm developing: http://cognitive-behavior-therapy.com/wordpress/

I'm using Atahualpa 3.5.3.

Thanks in advance for any help on this.

Andrew

lmilesw Nov 27, 2010 08:03 AM

What happens if you use the following conditional instead?
HTML Code:

<?php if( is_front_page() ) { ?>

hubbiida Nov 27, 2010 04:37 PM

Many thanks for the reply. Unfortunately, that doesn't fix the problem.

hubbiida Nov 28, 2010 06:15 AM

Hey STB,
Thanks so much! That did the trick.


All times are GMT -6. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.