Post auf jeder Seite

    • 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

  • DU hast vermutlich irgendeine Themedatei bearbeitet und dort das Wort Post irgendwo eingefügt. Im HTML Code sieht das so aus:

    Code
    <h2 class="art-postheader">Post
                                    </h2>

    Also schau mal die Themedateien durch, ob Du das in die index.php/loop.php/content.php - oder wie auch immer die Datei heißt, in der die Inhalte zusammengesetzt werden - irgendwo aus Versehen eingebaut hast.

  • unter content.php steht folgendes:

    <?php
    /**
    *
    * content*.php
    *
    * The post format template. You can change the structure of your posts or add/remove post elements here.
    *
    * 'id' - post id
    * 'class' - post class
    * 'thumbnail' - post icon
    * 'title' - post title
    * 'before' - post header metadata
    * 'content' - post content
    * 'after' - post footer metadata
    *
    * To create a new custom post format template you must create a file "content-YourTemplateName.php"
    * Then copy the contents of the existing content.php into your file and edit it the way you want.
    *
    * Change an existing get_template_part() function as follows:
    * get_template_part('content', 'YourTemplateName');
    *
    */
    global $post;
    theme_post_wrapper(
    array(
    'id' => theme_get_post_id(),
    'class' => theme_get_post_class(),
    'thumbnail' => theme_get_post_thumbnail(),
    'title' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>',
    'heading' => theme_get_option('theme_' . (is_home() ? 'posts' : 'single') . '_article_title_tag'),
    'before' => theme_get_metadata_icons('', 'header'),
    'content' => theme_get_excerpt(),
    'after' => theme_get_metadata_icons('tag', 'footer')
    )
    );
    ?>

    Welches post muss da weg?

Jetzt mitmachen!

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