WordPress.org

Ready to get started?Download WordPress

Forums

Membership
Parsing PHP in custom field (no access message) (1 post)

  1. Stefan83
    Member
    Posted 1 year ago #

    Hi

    I have a 'login' link in the shortcode 'no access message' custom field box of Membership plugin. I'd like to use the following redirect code to refer the user back to the previous page but it doesn't allow PHP to be inserted. How do I get around this wicthout hacking the plugin?

    <a href="/wp-login.php?redirect_to=<?php echo $_SERVER['REQUEST_URI'];
    ?>" class="simplemodal-login">Log In

    Any help would be great!

    Thanks
    Stefan

    http://wordpress.org/extend/plugins/membership/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.