Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-04-09, 03:12 AM   #1
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
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?
Jel is offline   Reply With Quote
Old 2006-04-09, 08:57 AM   #2
Dev~>
Banned
 
Join Date: Mar 2006
Location: Uaregay
Posts: 11
Send a message via ICQ to Dev~>
Lightbulb

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
Dev~> is offline   Reply With Quote
Old 2006-04-09, 12:25 PM   #3
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
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
Jel is offline   Reply With Quote
Old 2006-04-09, 09:06 PM   #4
Baxter
Trying is the first step towards failure
 
Baxter's Avatar
 
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!!!
Baxter is offline   Reply With Quote
Old 2006-04-10, 12:21 AM   #5
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
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.
Jel is offline   Reply With Quote
Old 2006-04-10, 12:43 AM   #6
Baxter
Trying is the first step towards failure
 
Baxter's Avatar
 
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!!!
Baxter is offline   Reply With Quote
Old 2006-04-10, 02:05 AM   #7
Dev~>
Banned
 
Join Date: Mar 2006
Location: Uaregay
Posts: 11
Send a message via ICQ to Dev~>
Lightbulb 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|
Dev~> is offline   Reply With Quote
Old 2006-04-10, 04:55 AM   #8
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
Yep, definitely the correct sidebar - the hack works perfectly - thankyou
Jel is offline   Reply With Quote
Old 2006-04-10, 07:37 AM   #9
Dev~>
Banned
 
Join Date: Mar 2006
Location: Uaregay
Posts: 11
Send a message via ICQ to Dev~>
Smile

you are welcome
Dev~> is offline   Reply With Quote
Old 2006-04-10, 10:04 AM   #10
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
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.
Jel is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:47 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc