|
2006-04-09, 03:12 AM | #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? |
2006-04-09, 08:57 AM | #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 |
2006-04-09, 12:25 PM | #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 |
2006-04-09, 09:06 PM | #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!!! |
2006-04-10, 12:21 AM | #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.
|
2006-04-10, 12:43 AM | #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!!! |
2006-04-10, 02:05 AM | #7 |
Banned
|
suggest 2
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| |
2006-04-10, 04:55 AM | #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
|
2006-04-10, 07:37 AM | #9 |
Banned
|
you are welcome
|
2006-04-10, 10:04 AM | #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 I wanted the blogroll links on the index page only, along with the recent posts and categories etc. and on all other pages I wanted the recent posts and categories, without the blogroll links. |
|
|