Hallo liebes Forum! Ich stehe momentan vor einem Problem mit dem Feintuning meines Templates für Wordpress. Ich möchte bei passwortgeschützten Einträgen, wo normalerweise "Protected: Titel" steht, eine Grafik (kleines Schloss) statt des Wortes "Protected", einblenden. Wie ich das Wort ändere, oder es komplett entferne, habe ich mittlerweile herausgefunden: :mrgreen:
Zeile 53 in post-teplate.php
PHP
function get_the_title( $id = 0 ) {
$post = &get_post($id);
$title = $post->post_title;
if ( !empty($post->post_password) )
$title = sprintf(__('Protected: %s'), $title);
else if ( 'private' == $post->post_status )
$title = sprintf(__('Private: %s'), $title);
return apply_filters( 'the_title', $title );
}
Alles anzeigen