Support » Plugins and Hacks » Show protected posts intro

Show protected posts intro

  • Hi guys,

    Since WordPress, this “hack” is not possible anymore since code lines are not the same.

    $output = get_the_password_form();
    return $output;

    Replaced it with this:
    $content = $pages[$page-1];
    $content = explode(‘<!–more–>’, $content, 2);
    $output = “”;
    $output .= $content[0];
    $output .= get_the_password_form();
    return $output;

    I wonder if somebody can “update” the trick… 😉

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Show protected posts intro’ is closed to new replies.