badhorsie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Edit Post Link on WP loop pages elsewhere?Finally! Brilliant, this works perfectly.
Your help is much appreciated. I have been trying to sort this out for so long.
Forum: Fixing WordPress
In reply to: Edit Post Link on WP loop pages elsewhere?Excellent, thanks.
Where are those constants defined in the first place, and where is the best place for me to change them or add the definitions if they don’t exist yet?
Forum: Fixing WordPress
In reply to: Edit Post Link on WP loop pages elsewhere?Nonsense? What? Why?
OK… forget the specific edit_post_link() issue. It’s the same problem as the login/out.
You are in the WP directory, and you login. THEN, you go to the Home page of my website, outside of WP. The Home page uses the WP loop to display recent posts or whatever, and on the Home page I need it to still display that you are logged in, but it doesn’t.
It doesn’t know you’re logged in anymore and so you are effectively logged out. Therefore, the posts on the Home page don’t display the edit_post_link() that I have put in them, because you’re not logged in.
If I click on a post, which takes me to a single.php (back in WP) it will show me as logged in. If I go back to the Home page… no longer logged in. And so on.
If I put a loginout() link on the Home page, I can log in but it will be like a separate login. I am logged in to the home page, and the WP system as the same person, at the same time, but completely separately and they have no knowledge of each other.
How is that nonsense? Has nobody ever wanted the website to display you as logged in EVERYWHERE, even outside of WP? If I am including wp-blog-header.php, I thought maybe it would still know I’m logged in.
Forum: Fixing WordPress
In reply to: Edit Post Link on WP loop pages elsewhere?No I know that, I am using WP everywhere outside of the system but I mean specifically the login/out functionality.
That doesn’t seem to work at all outside of WP. Basically, I can login within the WP system, but if I go outside of it, the pages have no idea I’m still logged in so all my ‘logged in as…’ links change to ‘log in’ again, and I can’t use edit_post_link() because it doesn’t know I’m logged in anymore.
I have asked this before about 5 times in different ways and nobody ever seems to understand or be able to offer a solution. I don’t understand… surely someone’s noticed this before?
Forum: Fixing WordPress
In reply to: Tags are coming out in a random caseDoes nobody else get this? Some tags have capital letters, some don’t. If I try to change them, WP changes them back for me when I save the post.
Forum: Fixing WordPress
In reply to: Stop WordPress redirecting to index.php when page not foundOn my old site, I used to have WP and a 404.php but I don’t remember it really being used much. It would still redirect to the index when you entered an invalid URL.
Forum: Fixing WordPress
In reply to: Stop WordPress redirecting to index.php when page not foundOK, so if I create a 404.php and place it in my theme folder, WP will just know to go there? I have seen something like index.php?error=404 …is that the parameter needed to send it to that page?
Forum: Fixing WordPress
In reply to: Stop WordPress redirecting to index.php when page not found@samboll – No, I’m not using an IIS server.
@haochi – If I add anything after the dot I get an internal server error. I already have a rule like that in my root and it works fine:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule \.(php|cgi)$ [R=404,L] </IfModule>
Anyway, some more info… I have established it needs to redirect to the index. If I change the redirect to anything else (even sending directly to the 404 page) all my permalinks stop working and come up as 404s. For example:
RewriteRule . /404.php [L]
OR
RewriteRule . /randompage.php [L]
Will cause all permalinks to just return 404 errors. If I add any [R] tag to the rewrite, all permalinks break by all redirecting to the index:
RewriteRule . /wordpress/index.php [R,L]
So therefore, I’m guessing there is a query string that is handled by the index.php or something, which needs to be kept in order for the permalinks to not break. Anyone know what this is?
——————————————————–
Where exactly is the code in the WP system that does the actual rewriting of URLS to pretty permalinks?Edit: wp-includes/canonical.php – I have no idea if or how I can change this?
Forum: Fixing WordPress
In reply to: 2 Separate Login Statuses?!Any ideas please?
Forum: Fixing WordPress
In reply to: Why does WP redirect to main page?OK, basically I have established that I want to stop WordPress being able to write anything to my .htaccess file. I went into wp-admin/options-permalink.php and set $writable to always be false, but that did nothing.