lukeoly
Forum Replies Created
-
Forum: Plugins
In reply to: Modifying the Password Protected messageOk, I have a solution for this.
You have to open and edit the wp-content/themes/yourtheme/functions.php file. You can copy and paste the code below into this file just before the php close tag.
This will then insert your custom text into password protect message field.function replace_the_password_form($content) {
global $post;
// if there’s a password and it doesn’t match the cookie
if ( !empty($post->post_password) && stripslashes($_COOKIE[‘wp-postpass_’.COOKIEHASH])!=$post->post_password ) {
$output = ‘<form action=”‘.get_option(‘siteurl’).’/wp-pass.php” method=”post”>
‘.__(“This post is password protected. To view it please enter your password below:”).’<label for=”post_password”>Password:</label>
<input name=”post_password” class=”input” type=”password” size=”20″ />
<input type=”submit” name=”Submit” class=”button” value=”‘.__(“Submit”).'” /></form>
‘;
return $output;
}
else return $content;
}
add_filter(‘the_content’,’replace_the_password_form’);Depending on what your function.php file is you may also need to put a <?php before this code and a ?>
Forum: Fixing WordPress
In reply to: Deleted one of the admin accounts and lost pagesI’ve seemed to have lost about 8 pages out of 36.
The best method of recovery i have found is to strip the code from the Google cache filesForum: Fixing WordPress
In reply to: Deleted one of the admin accounts and lost pagesBecause our website’s content is changing so often, it would probably be more work to start way back from the last backup.
I can’t find any page’ish file to restore.
Where are they saved?
Forum: Fixing WordPress
In reply to: Deleted one of the admin accounts and lost pagesi have a backup but i’m not sure how recent it is.
What files in the wp content folder do I have to restore?