• Co zrobić, żeby nie było wyświetlane „Published (data)|by (nazwa użytkownika)” i „Posted in (bez kategorii)”? Bardzo proszę o pomoc.. 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter patrol97

    (@patrol97)

    <?php

    /**
    *
    * single.php
    *
    * The single post template. Used when a single post is queried.
    *
    */

    get_header(); ?>
    <div class=”art-layout-wrapper”>
    <div class=”art-content-layout”>
    <div class=”art-content-layout-row”>
    <div class=”art-layout-cell art-sidebar1″>
    <?php get_sidebar(’default’); ?>
    <div class=”cleared”></div>
    </div>
    <div class=”art-layout-cell art-content”>
    <?php get_sidebar(’top’); ?>
    <?php
    if (have_posts()){
    /* Display navigation to next/previous posts when applicable */
    if (theme_get_option(’theme_top_single_navigation’)) {
    theme_page_navigation(
    array(
    'next_link’ => theme_get_previous_post_link(’« %link’),
    'prev_link’ => theme_get_next_post_link(’%link »’)
    )
    );
    }

    while (have_posts())
    {
    the_post();
    get_template_part(’content’, 'single’);
    /* Display comments */
    if ( theme_get_option(’theme_allow_comments’)) {
    comments_template();
    }
    }

    /* Display navigation to next/previous posts when applicable */
    if (theme_get_option(’theme_bottom_single_navigation’)) {
    theme_page_navigation(
    array(
    'next_link’ => theme_get_previous_post_link(’« %link’),
    'prev_link’ => theme_get_next_post_link(’%link »’)
    )
    );
    }

    } else {

    theme_404_content();

    }
    ?>
    <?php get_sidebar(’bottom’); ?>
    <div class=”cleared”></div>
    </div>
    </div>
    </div>
    </div>
    <div class=”cleared”></div>
    <?php get_footer(); ?>

    Tu mój kod single.php

    szukaj w pliku content-sigle.php

    Thread Starter patrol97

    (@patrol97)

    <?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(),
    'title’ => theme_get_meta_option($post->ID, 'theme_show_post_title’) ? get_the_title() : ”,
    'heading’ => theme_get_option(’theme_single_article_title_tag’),
    'before’ => theme_get_metadata_icons(’date,author,edit’, 'header’),
    'content’ => theme_get_content(),
    'after’ => theme_get_metadata_icons(’category,tag’, 'footer’)
    )
    );
    ?>

    To jest ten kod content-single.php co w nim powinienem zmienić? Bo usunięcie z 32 linijki tekstu „(’date,author,edit’, 'header’)” nie pomogło.. Niezbyt ogarniam wordpress’a wiem, wiem :/ 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • Temat ‘Wpisy’ jest zamknięty na nowe odpowiedzi.