Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sobastian

    (@sobastian)

    I thought it was a support forum, and here support is none.
    I struggle with this from a few days to no avail. It seems that I have to look for another solution.
    Anyway, thanks for nothing.

    K. Tough

    (@kjvtough)

    $download = get_post_meta($post->ID, 'Download Sample', true);
    $custom_field = '<a class="download-button" href="' . $download . '" title="Download Free Sample" target="_blank"><span>Download Free Sample</span></a>';
    $custom_field = apply_filters( 'the_content', $custom_field );
    $custom_field = str_replace( ']]>', ']]>', $custom_field );
    echo do_shortcode( '[content_protector password="mypassword"]' . $custom_field . '[/content_protector]' );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Protecting custom field’ is closed to new replies.