Odpowiedź forum utworzona

Viewing 1 replies (of 1 total)
  • Thread Starter arak1488

    (@arak1488)

    Witam jeszcze raz !

    Pobawiłem się trochę, poczytałem.

    Zmieniłem w kodzie kilka rzeczy, natomiast google webtools nadal wyświetla, że mam błedy hentry.

    Oto kod, który uległ modernizacji przeze mnie:

    <?php global $theme; ?>
    
       <span class="post-date updated"> </span>
    
        <div <?php post_class('post post-single clearfix'); ?> id="post-<?php the_ID(); ?>">
    
            <div class="postmeta-primary">
    
                 <span class=”post-date updated”><?php the_date(); ?></span>
               &nbsp; <span class="meta_categories"><?php the_category(', '); ?></span>
    
                    <?php if(comments_open( get_the_ID() ))  {
                        ?> &nbsp; <span class="meta_comments"><?php comments_popup_link( __( 'No comments', 'themater' ), __( '1 Comment', 'themater' ), __( '% Comments', 'themater' ) ); ?></span><?php
                    }
    
                    if(is_user_logged_in())  {
                        ?> &nbsp; <span class="meta_edit"><?php edit_post_link(); ?></span><?php
                    } ?>
            </div>
    
            <h2 class=”entry-title”><?php the_title(); ?></h2>
    
            <div class="entry clearfix">
    
                <?php
                    if(has_post_thumbnail())  {
                        the_post_thumbnail(
                            array($theme->get_option('featured_image_width_single'), $theme->get_option('featured_image_height_single')),
                            array("class" => $theme->get_option('featured_image_position_single') . " featured_image")
                        );
                    }
                ?>
    
                <?php
                    the_content('');
                    wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'themater' ) . '</strong>', 'after' => '</p>' ) );
                ?>
    
            </div>
    
            <?php if(get_the_tags()) {
                    ?><div class="postmeta-secondary"><span class="meta_tags"><?php the_tags('', ', ', ''); ?></span></div><?php
                }
            ?> 
    
        </div><!-- Post ID <?php the_ID(); ?> -->
    
        <?php
            if(comments_open( get_the_ID() ))  {
                comments_template('', true);
            }
        ?>
Viewing 1 replies (of 1 total)