I have a wordpress blog where I am trying to customize the "This post is password protected. To view it please enter your password below:" I want to simply create a link <a href="http://www.website.com">Join Today</a> that non-members can click on to become a member. I've tried adding this but I get a string error...
Php/Javascript Challenge!
9
I have a wordpress blog where I am trying to customize the "This post is password protected. To view it please enter your password below:" I want to simply create a link
<a href="http://www.website.com">Join Today</a> that non-members can click on to become a member. I've tried adding this but I get a string error...
I have been banging my head on how to create this link within this function. I would appreciate any input you may have! See the code below...
Specifically this is the line that I need to modify:
<p>' . __("Not a member? Goto http://www.website.com"). '</p>
function get_the_password_form() {
global $post;
$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
<p>' . __("Not a member? Goto http://www.website.com"). '</p>
<p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>
</form>
';
return apply_filters('the_password_form', $output);
}
<a href="http://www.website.com">Join Today</a> that non-members can click on to become a member. I've tried adding this but I get a string error...
I have been banging my head on how to create this link within this function. I would appreciate any input you may have! See the code below...
Specifically this is the line that I need to modify:
<p>' . __("Not a member? Goto http://www.website.com"). '</p>
function get_the_password_form() {
global $post;
$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
<p>' . __("Not a member? Goto http://www.website.com"). '</p>
<p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>
</form>
';
return apply_filters('the_password_form', $output);
}
- GB2008
- [1] reply
- Active_One_2006
- [1] reply
- GB2008
- [1] reply
- Steve Diamond
- solidsoul
Next Topics on Trending Feed
-
9