• fab

    (@tranquiltravellers)


    Hi everyone,

    I love the Origin theme and was using it for a previous WordPress.com blog I was running. I have now moved onto self hosting with www.ads-software.com using the Origin theme.

    The WordPress.com version used to show the number of comments on the byline for each post in this format: date, author, category, comments.

    However the www.ads-software.com version is only showing: date, author, category. My question is how do I also show the number of comments on the byline?

    I have looked around the settings and cannot find where to activate the number of comments. I am not too confident with editing the code yet but if it is something that needs to be done then I am willing to learn.

    Thanks very much.

    Fabio

Viewing 5 replies - 1 through 5 (of 5 total)
  • bump, i would to enable this option! Anyone?

    Bump. I would love this option to0 … comment bubble listed on home page with the byline.

    https://natch.is/

    In the post.php and index.php files, just add the Origin’s shortcode for “number of comments”. You can find them in the “shortcodes” file of the theme. I edited it so the number of comments appears just at the right of the categories of the post, separated by a middot. I left you the whole parragraph to replace in the post.php and index.php files (in your Dashboard->Appearance->Editor->Page Template (page.php) / Main Index Template (index.php).

    <?php echo apply_atomic_shortcode( ‘byline’, ‘<div class=”byline”>’ . __( ‘[entry-published] · by [entry-author] · in [entry-terms taxonomy=”category” before=””] &middot [entry-comments-link] [entry-edit-link before=” · “]’, ‘origin’ ) . ‘</div>’ ); ?>

    Just find the code paragraph and replace it in both files.
    Enjoy!
    Origin Theme team, thanks for the theme!

    Which code to I replace?

    <?php if ( have_posts() ) : ?>
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php do_atomic( 'before_entry' ); // origin_before_entry ?>
    
    					<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
    
    						<?php do_atomic( 'open_entry' ); // origin_open_entry ?>
    
    						<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title permalink="0"]' ); ?>
    
    						<div class="entry-content">
    
    							<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'origin' ) ); ?>
    
    							<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'origin' ), 'after' => '</p>' ) ); ?>
    
    						</div><!-- .entry-content -->
    
    						<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">[entry-edit-link]</div>' ); ?>
    
    						<?php do_atomic( 'close_entry' ); // origin_close_entry ?>

    I only added it to main index template. Seems to work fine!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show number of comments on byline’ is closed to new replies.