poultryfarm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: sidebar code working on index but not on single templateI posted this almost one month ago, and haven’t recieved any replies. Although I have been toying with this endlessly I still haven’t gotten it to work. I’m really getting desperate for some help. Please if anyone can offer a hand I would very grateful. Thank you.
Forum: Fixing WordPress
In reply to: sidebar code working on index but not on single templateI’ve been reading up on php + wordpress and feel pretty comfortable with both. But I’m stumped here! playing with this for over a week and still no go. I’ve also turned off all of my plugins. I am sorry to keep asking, but I’m at the last of my resources and need to get this to work. Nobody can help me out?
Please take a look, thank you.Forum: Fixing WordPress
In reply to: sidebar code working on index but not on single templateif any php experts out there (or others) can help me with this I would be really grateful. The code on the index and single template are exactly the same… so why would it display differently? is there some php difference that i am not taking into consideration?
Forum: Fixing WordPress
In reply to: Listing other posts in category on single post pagedid you ever figure this out? i’m having the exact same problem.
Forum: Fixing WordPress
In reply to: access to current data?Thank you for this!:
global $posts // if necessary
...
$postid = $posts[0]->ID // note that 'ID' must be upper-case capitalsI’ve been struggling with this for a while. This is a great help.
Forum: Fixing WordPress
In reply to: sidebar code working on index but not on single templateI am on WP 1.5.1.3 and I am building my own theme from scratch. You can see what I have here:
https://www.stanallenarchitect.com/lab/The projects show up on the right hand side fine on the index page, but when you click on one of the projects to get to a single page you’ll see: “Sorry, no projects entered yet.” Which, as the code I included above suggests that it is not finding any projects in category “projects” yet on the index page it does.
Let me know if there is anything I may clarify. Thank you in advance for your help.Forum: Fixing WordPress
In reply to: .htaccess & Permalinks Problemgreat info here. like many i’ve been struggling with this for a long time. finally adding
Options +Followsymlinks
solved the problem.
I just have one tip to add though that I haven’t seen mentioned yet.
addingOptions +Followsymlinks
to .htaccess solved the problem, but i would have to close off the permissions so that wordpress couldn’t ovewrite it again (if for example i decided to change my permalinks again). i wanted a way to have wordpress generate the right code everytime without having to manually add it. so i went into wp-includes > classes.php and added this line$rules .= "Options +Followsymlinksn";
between these two original lines:
$rules = "<IfModule mod_rewrite.c>n";
$rules .= "RewriteEngine Onn";
now it writes the code correctly everytime. no need to mess with the .htaccess file. My knowledge of php is zero and i am knew to wordpress so if there is a smatter way to do this or i have done something silly i am eager to know. so far so good though. hope this helps somebody else.