• Resolved anonymer

    (@anonymer)


    By default The Bootstrap Displays on the home page (created by index.php) for every post the date, the author, and “add comment”. I belief this is done in /partials/content by the following lines:

    <div class="entry-meta">
                            <?php the_bootstrap_posted_on(); ?>
    </div><!-- .entry-meta -->

    But I can’t find the function “the_bootstrap_posted_on . So how can I change the display of metadata for posts ?

    Thx

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

    (@anonymer)

    Ok i found it out :

    /inc/template-tag.php :

    function the_bootstrap_posted_on() {
            printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> $
                            esc_url( get_permalink() ),
                            esc_attr( get_the_time() ),
                            esc_attr( get_the_date( 'c' ) ),
                            esc_html( get_the_date() ),
                            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                            esc_attr( sprintf( __( 'View all posts by %s', 'the-bootstrap' ), get_the_author() ) ),
                            get_the_author()
            );
            if ( comments_open() AND ! post_password_required() ) { ?>
                    <span class="sep"> | </span>
                    <span class="comments-link">
                            <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'the-bootstrap' ) . '</span>', __( '<strong>1</strong> Reply', 'the-bootstrap' ), __($
                    </span>
                    <?php
            }
            edit_post_link( __( 'Edit', 'the-bootstrap' ), '<span class="sep">&nbsp;</span><span class="edit-link label">', '</span>' );
    }
    endif;

Viewing 1 replies (of 1 total)
  • The topic ‘Change display of meta data in home page’ is closed to new replies.