Quick wordpress function

This project was successfully completed by wpdreamersl for $50 USD in 2 days.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$50 USD
Completed In
2 days
Total Bids
Project Description

Hello I have a quick project/problem that id like to get solved.
Im using wordpress AFC-Plugin (custom fields) and im have some password protected content that should be unlocked if the password inputed in the input field is correct.

The example: [url removed, login to view] (password: andreas)
The password to video #4 is set as custom field so the code looks like this:
<?php if($video_password){ ?>
<li class="locked">
<form method="post" id="ret_delete_form" class="submit" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
<h4 class="gform_title">Unlock video</h4>
<input name="ret_password" id="ret_password" type="password" value="" class="medium" tabindex="4">
<!--<input type="submit" id="ret_submit" class="button gform_button" value="Unlock" tabindex="5">-->

<?php if($video_title){ ?>
<div class="video-desc">
<h3><?php echo $video_title; ?></h3>
<p><?php echo $video_description; ?></p>
<span><?php echo $video_duration; ?></span>
<?php } ?>
</li><!-- locked -->

<?php } else { ?>

<li class="clearfix" style="width:<?php echo $video_width; ?>; height:<?php echo $video_height; ?>;">

<iframe src="<?php echo $video_file; ?>" width="<?php echo $video_width; ?>" height="<?php echo $video_height; ?>" frameborder="0" scrolling="no" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>

<?php if($video_title){ ?>
<div class="video-desc">
<h3><?php echo $video_title; ?></h3>
<p><?php echo $video_description; ?></p>
<span><?php echo $video_duration; ?></span>
<?php } ?>

<?php } ?>

So what I need is something like this:
if(get_field('ad_password') == $_POST['ret_password']){
show the video
} else {
echo "wrond password";

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online