• Resolved vishakhanehe

    (@vishakhanehe)


    Hi Guys,
    I am using wp job manager plugin. I added password protection for pages and they show password protected if somebody without a password tries to access them but on listing password protection is not working..

    It just shows: protected text if I make that job posting password protected and easily accessible by anyone.

    Let me know how to make it protected.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi @vishakhanehe !

    Since single jobs are not pages or posts, but custom post types with their templates, you may need to add some custom code to use password protection on them.

    For template overriding check this page: https://wpjobmanager.com/document/template-overrides/
    For password protection, this may help: https://stackoverflow.com/questions/12822923/wordpress-password-protect-archive-and-single-posts-for-custom-post-type

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi,
    To make that page password protected I am writing the following snippet but after making that job posting password-protected, when I open that it does not show anything for password but it gives a Protected: text in front of title.

    
    function change_password_protected ($output) { 
    	$adminEmail = get_option( 'admin_email' ); 
    	$newPasswordText = 'Hi, Welcome!
    	<a href="URL">HERE</a> <br/> If you have registered and received a confirmation call or message, please add the password below:'; 
    	$output = str_replace("This content is password protected. To view it please enter your password below:", $newPasswordText, $output); 
    	return $output;
    }
    add_filter( 'the_password_form', 'change_password_protected', 999);

    Let me know what is wrong with the above code. Please.

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi Team,
    Please let me know if there is any update.

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi Team,

    Have not heard back from you. Would be great if you can update as earliest as possible.

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi @vishakhanehe !

    We can’t help with custom code but maybe someone else will be able to help you with this ??

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi @bindlegirl,
    I am not asking for custom code help. The code which I have shared with you is working but when I go to the job listing this simply does not work..

    Is there any hook that I should use for custom code as per your plugin? I hope you can help with this at least to achieve the goal.

    Thanks,

    • This reply was modified 3 years, 6 months ago by vishakhanehe.
    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi Team,
    Is there any update on this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide the job listing from getting public’ is closed to new replies.