Posted on und Posted in entfernen klappt nicht

  • Hi,

    ich habe von WP 3.2 auf 3.3 ein Update gemacht. Jetzt erscheint vor einem Artikel wieder

    Posted on [DATE] by [USER]

    und danach

    Posted in [Category] | Leave a Comment

    Ich meine dass ich das in WP 3.2 in der content.php entfernt habe...
    aber die gibts nicht mehr... oder seh ich da was nicht??

    Benutzt wird das Theme Twenty Ten 1.3

    Vielen Dank schonmal für eure Antwort

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • In der functions.php loescht du die Zeilen 467-479


    In der loop.php loescht du die Zeile 151

    PHP
    <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>


    sowie die Zeile 164

    PHP
    <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
  • immer noch da

    Hallo,
    ich bin, glaube ich, nach dieser Anweisung vorgegangen, habe aber immer noch "Posted in Kategorie" unter dem Artikel auf der Startseite stehen.

    Die functions.php sieht jetzt am Ende wie folgt aus:

    [COLOR=blue]function twentyten_posted_on() {[/COLOR]
    [COLOR=blue]}[/COLOR]
    [COLOR=blue]endif;[/COLOR]
    [COLOR=blue]if ( ! function_exists( 'twentyten_posted_in' ) ) :[/COLOR]
    [COLOR=blue]/**[/COLOR]
    [COLOR=blue]* Prints HTML with meta information for the current post (category, tags and permalink).[/COLOR]
    [COLOR=blue]*[/COLOR]
    [COLOR=blue]* @since Twenty Ten 1.0[/COLOR]
    [COLOR=blue]*/[/COLOR]
    [COLOR=blue]function twentyten_posted_in() {[/COLOR]
    [COLOR=blue]// Retrieves tag list of current post, separated by commas.[/COLOR]
    [COLOR=blue]$tag_list = get_the_tag_list( '', ', ' );[/COLOR]
    [COLOR=blue]if ( $tag_list ) {[/COLOR]
    [COLOR=blue]$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );[/COLOR]
    [COLOR=blue]} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {[/COLOR]
    [COLOR=blue]$posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );[/COLOR]
    [COLOR=blue]} else {[/COLOR]
    [COLOR=blue]$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );[/COLOR]
    [COLOR=blue]}[/COLOR]
    [COLOR=blue]// Prints the string, replacing the placeholders.[/COLOR]
    [COLOR=blue]}[/COLOR]
    [COLOR=blue]endif;[/COLOR]
    [COLOR=#0000ff][/COLOR]
    [COLOR=black]Bin in Sachen php ziemlich planlos. Was kann ich noch ändern/löschen, um das "Posted in" weg zu bekommen?[/COLOR]
    [COLOR=black][/COLOR]
    [COLOR=black]Danke für Eure Hilfe.[/COLOR]
    [COLOR=black][/COLOR]
    [COLOR=black]Gruß Kai[/COLOR]

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!