bennyjammin
Forum Replies Created
-
Great job, worked like a charm except for one thing. The password protection doesn’t hide the custom fields from displaying so I wrapped the contents of the single.php file from my theme in this code:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php if ( post_password_required() ) { echo get_the_password_form(); } else { ?>.. your custom php code or whatever ..
<?php
}
?>I found the solution here
Thank you GoodNightJournal for sharing your code. If I waned to add the option of a password protected post, could you advise me please how I would have to amend the code? I am not sure what is the field form the database that I need to accept the post password,
add a custom field from dashboard. Field Name: ????????. Type: Text.
Hi Kate, I am currently trying to add the features that you mentioned. Just wondering, did you have any luck adding them since you posted your message?