[resolved] template-tags.php issues? (2 posts)

  1. EricSalvi
    Posted 1 year ago #

    So I just noticed that on my content single page when viewing an article, the template-tag says "author / date on date in category".

    it shows the date twice. I was using a child theme for this and was trying to get it to look like this.

    Author posted on Date in Category.

     * @package Expound
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<header class="entry-header">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    		<div class="entry-meta">
    			<?php expound_posted_on(); ?><? echo " on ";?><?php expound_posted_in(); ?>
    		</div><!-- .entry-meta -->
    	</header><!-- .entry-header -->
    	<div class="entry-content">
    		<?php the_content(); ?>
    			wp_link_pages( array(
    				'before' => '<div class="page-links">' . __( 'Pages:', 'expound' ),
    				'after'  => '</div>',
    			) );
    	</div><!-- .entry-content -->
    </article><!-- #post-## -->

    That is the code that is in my child template-tag.php file. Any help?

  2. Konstantin Kovshenin
    Theme Author

    Posted 1 year ago #

    The original version just calls expound_posted_on() once in that area, without the "on" and that extra stuff. You can revert your child theme to the parent's behavior by deleting the template file. Don't forget to backup!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic