View Single Post
  #2 (permalink)  
Old 14-03-07
etravelreviews etravelreviews is offline
Fresh Meat
 
Join Date: Mar 2007
Posts: 3
Default Wordpress Login issue

I installed Wordpress at http://www.etravelreviews.com/comments/

My wordpress post is at http://www.etravelreviews.com/comments/savannah/

My page is at http://www.etravelreviews.com/savannah/

use login: XXXXXX
pw: XXXXXX

I have a php include on my page that incorporates my post into my page:

Login is required to add a comment to the post.

Goto my page, at the bottom, click to login, and it will return you to my page after login saying you still need to login.

If you navigate directly to the post, however after logging in, it will give you the ability to add a comment / logout.

I've tested this by putting this code into the post (comments.php):

When logged in and you go directly to the post, it answers with the proper user ID: "User ID: 3"

When logged in and you go to my page, it has no answer - just says "User ID: "

(you can see that code result at the bottom of the page).

The issue is the following code in the comments.php file:

When accessing the post directly, with a user logged in, this test fails (as it should)
When the post is included in my page, and a user is logged in, the test validates (but it shouldn't).

All I'm trying to do is when a user is logged in and viewing my page, that they can add a post.

Please help!
~marc

Last edited by WordpressConsultant : 15-03-07 at 02:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote