|
|
|
|
|
|
![]() |
#1 |
I'm the only guy in the world who has to wake up to have a nightmare
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
|
Wordpress help - blogroll
OK I have the opposite problem of http://www.greenguysboard.com/board/...ad.php?t=30506
This is what is in my sidebar: <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php get_links_list(); ?> <?php } ?> Yet the links show on every page, not only the home page. It's the same code I have on my other WP blog, and that one works fine. I'm scratching my head bald trying to figure this one out, any ideas? |
![]() |
![]() |
![]() |
#2 |
Banned
|
![]() hi jel
first,make sure that is really your current sidebar if this, try removing " || is_page() " code: <?php /* If this is the frontpage */ if ( is_home()) { ?> <?php get_links_list(); ?> <?php } ?> just a suggestion, I did not prove |
![]() |
![]() |
![]() |
#3 |
I'm the only guy in the world who has to wake up to have a nightmare
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
|
Hi Dev,
Just tried that and it's still showing my 'links' on every page instead of the index page only, thanks for the idea though. Anyone think it's possible it's a htacess issue? That's an area I truly suck in, thoughts/ideas appreciated ![]() |
![]() |
![]() |
![]() |
#4 |
Trying is the first step towards failure
Join Date: Aug 2003
Location: Michigan
Posts: 123
|
check to see if you have a single.php file if you do take out the
<?php get_sidebar(); ?>
__________________
Baxter's Network - My Network Of Porn Sites!!! |
![]() |
![]() |
![]() |
#5 |
I'm the only guy in the world who has to wake up to have a nightmare
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
|
I have, but that will remove the categories and recent posts which I need to keep on all pages.
|
![]() |
![]() |
![]() |
#6 |
Trying is the first step towards failure
Join Date: Aug 2003
Location: Michigan
Posts: 123
|
then i guess im not clear on what you want on the pages?
__________________
Baxter's Network - My Network Of Porn Sites!!! |
![]() |
![]() |
![]() |
#7 |
Banned
|
![]() again, really make sure that is your current sidebar, because i have the same code and the links are only showing on index.
to make sure, just write something and upload to see if it is: code: this is my current sidebar!! <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php get_links_list(); ?> <?php } ?> ----------------------------------- ok now i litlle hack, if your blog is in your document root like www.myurl.com try: <?php /* If this is the frontpage */ if ( $_SERVER['REQUEST_URI'] == '/') { ?> <?php get_links_list(); ?> <?php } ?> else like www.myurl.com/heremyblog/ <?php /* If this is the frontpage */ if ( $_SERVER['REQUEST_URI'] == '/heremyblog/') { ?> <?php get_links_list(); ?> <?php } ?> just another suggestion, I did not prove i hope help |badidea| |
![]() |
![]() |
![]() |
#8 |
I'm the only guy in the world who has to wake up to have a nightmare
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
|
Yep, definitely the correct sidebar - the hack works perfectly - thankyou
![]() |
![]() |
![]() |
![]() |
#9 |
Banned
|
![]() you are welcome
![]() |
![]() |
![]() |
![]() |
#10 |
I'm the only guy in the world who has to wake up to have a nightmare
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
|
Hi baxter,
Sorry I missed your post somehow, was not my intention to ignore you ![]() |
![]() |
![]() |
![]() |
|
|