Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8071889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:50:07+00:00 2026-06-05T13:50:07+00:00

I am using worpress and have added a loggout link in the nav: echo

  • 0

I am using worpress and have added a loggout link in the nav:

echo '<a href="http://mydomain.com/wp-login.php?action=logout&redirect_to=%252Flogin%252F&_wpnonce=a2b834fa87">Logout</a>';

I need it to redirect to the homepage instead of going to the login page.

If possible I would like to do this by modifying the link about.

I tried changing %252Flogin%252F to the url but that didn’t work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:50:08+00:00Added an answer on June 5, 2026 at 1:50 pm

    It should work. But don’t forget urlencode your homepage url.

    echo '<a href="http://mydomain.com/wp-login.php?action=logout&redirect_to='.urlencode($url_home).'&_wpnonce=a2b834fa87">Logout</a>';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using following WordPress plugin to send email. http://coffee2code.com/wp-plugins/configure-smtp/ I have done configuration,
I'm using Subscribe2 plugin in my new upcoming WordPress blog ( http://www.adlerr.com ). My
I'm using the wp_list_bookmarks() function in wordpress to get links that have been added
I am using Wordpress and I want to have some PHP commands executed on
http://lakers.sonikastudios.com/gallery/sample-gallery-post-1/ That post has several pages using the quicktag of Wordpress. This post is
I have a table like this (using wordpress) +---------+----------+------------+ | meta_id | meta_key |
I have more than 3000 members on a site built using wordpress. I am
I just started out using wordpress as a CMS. On the site I have
I have been using Backbone.js to act as a middleman between Wordpress (using the
UPDATE I tried using the internal wordpress rewrite. What I have to do is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.