• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / A Login link on a page that returns user to page

A Login link on a page that returns user to page

  • Unknown's avatar
    midwaysurf · Member · Aug 2, 2011 at 12:55 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi this issue is dealt with by a wordpress.org plugin but is there a way to achieve it in a wordpress.com blog?

    The aim is to make a Login link on a Home page (in a Text widget) which processes a Login by a registered (to the site) user and returns the user to that same Home page rather than to the Dashboard.

    Scenario? A public blog for a Club whose members are registered. A member visits the public blog and if necessary logs in – without in effect leaving that Home page and in particular without being sent off into Dashboard-world.

    Thanks.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    raincoaster · Member · Aug 2, 2011 at 1:16 am
    • Copy link Copy link

    Not possible on WordPress.com unless you want to make them all Contributors, with the ability to blog.

    http://en.support.wordpress.com/user-roles/

  • Unknown's avatar
    midwaysurf · Member · Aug 2, 2011 at 1:25 am
    • Copy link Copy link

    Very many thanks. So I shall make them Contributors.

    What do I do?

  • Unknown's avatar
    airodyssey · Member · Aug 2, 2011 at 1:29 am
    • Copy link Copy link

    Go to the link raincoaster gave you. On the right, under “Related”, go to “Adding Users”.

  • Unknown's avatar
    designsimply · Member · Aug 2, 2011 at 1:45 am
    • Copy link Copy link

    If I understand correctly, I think you can do that with the redirect_to query string argument.

    Try using a link like this for the login:

    http://YOUR_DOMAIN/wp-login.php?redirect_to=http://YOUR_DOMAIN/

    Replace YOUR_DOMAIN with your blog name. For example:

    http://midwaysurf.wordpress.com/wp-login.php?redirect_to=http://midwaysurf.wordpress.com/

    It doesn’t matter what the user role is for registered users, but the role limits what types of things each user can do in the dashboard. Regardless of the user role, users can access the dashboard using the Blogs menu in the gray admin bar which all WordPress.com users see when they are logged in.

  • Unknown's avatar
    panaghiotisadam · Member · Aug 2, 2011 at 2:39 am
    • Copy link Copy link

    @designsimply: A big hug from me!

  • Unknown's avatar
    midwaysurf · Member · Aug 2, 2011 at 2:41 am
    • Copy link Copy link

    Bigger one from me… that works a treat so far. Fantastic. Thank you.

  • The topic ‘A Login link on a page that returns user to page’ is closed to new replies.

Tags

  • login
  • redirect_to query string

About this topic

  • In: Support
  • 5 participants
  • 6 replies
  • Last activity 14 years
  • Latest reply from midwaysurf

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions