• So I’m somewhat new to WordPress, but I have a very technical background. I’ve seen some solutions to my question, but I’m still not getting it very well. What I want to do, I’m guessing, is not very complicated. What I want to do is to have different links display when the user is logged in v.s. when they’re not (The “Back to Website” link will take to different places depending on whether or not the visitor is logged in or not).

    Another thing I’m trying to achieve is to NOT display the login widget, but allow the person to log in. This will be done via logging into the main site. While I have figured out how to automatically have a person log in if the login widget is activated, I have not been able to figure this out if it isn’t. Maybe I’ll open another discussion on this, if it’s possible.

    Appreciate any help in advance.

    Thanks.

    -Jim

Viewing 5 replies - 1 through 5 (of 5 total)
  • HI Jim,

    So it sounds like you want different menu items based upon whether or not a user is logged in or not. If this is what you want, then you can use the following plugin to achieve your goal:

    http://wordpress.org/plugins/nav-menu-roles/

    Now, I don’t understand how you want people to log in without a login widget showing on the page. That has stumped me 🙂 I mean, you don’t have to have the login widget because they can still log in by going to yourdomain.com/wp-login.php

    Is that what you want? If you want a custom login form, you can also use the solution below:

    https://wordpress.org/plugins/theme-my-login/

    Hope this helps!

    Thread Starter jwartnic

    (@jwartnic)

    Thank you for prompt reply to my message. I didn’t follow the link you presented to me, but I have several goals. One, I want to have a link that takes the logged in person to a different page to the person who hasn’t logged in. Secondly I want to some-how have my site manage the logins. When they log into the “main” site, they should also log into “wordpresss”. I have the second ability, but it doesn’t work when the login-in widget is de-activated. I want the “main” site to drive everything (i.e. when they log in to the main site, which is not a word-press site, to log into everything), and also, display the “correct” “home” link. Hope that helps. thanks for the advanced tips.

    -Jim

    Thread Starter jwartnic

    (@jwartnic)

    I read the first part of your response. The problem I have is that the link is not in the menu, but the side-bar. I’ve seen people stating “put this php code in to get it to work”, but I have no idea where they are doing it. Any ideas?

    Well I thought I understood your goal up until the point you said your “Main site” is NOT a WordPress site. Because of this, no one here really would be able to help you as much because this is a WordPress specific forum.

    How you would code your main site the way you want it to work with WordPress is a bit beyond the scope of support here. However, if your main site was WordPress, these things could easily be done, including the Sidebar with links being different for logged in vs logged out users. You would have to use a plugin like these:

    http://plugintube.com/display-widgets/

    https://wordpress.org/plugins/dynamic-widgets/

    Thread Starter jwartnic

    (@jwartnic)

    Mike,

    Thanks for the response. What about the dynamic links? That’s all internal to WordPress. How can I make the link change once the user logs in (or simply show a different link)? The link I want to have change is on the side-bar.

    For the other part (logging into wordpress without activating/including the login widget. Is there a way to “hide” the widget? I can get the “autologon” working (from my “main” site) by calling the correct php script with the proper form items/values. However, if the widget is not there and I still call the php script, it doesn’t complain, but it doesn’t log the person in either (at least from what I could tell).

    Anyway, as always, appreciate your input.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dynamic links’ is closed to new replies.