Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27645

    Hi,

    I´m using Simple Catch free and I was able to remove author name from my posts, but I’d like to display the post category instead. Is is possible?

    I want it to be something like this:

    POST NAME
    04/26/2014 | Category

    Thanks!

    #27663
    Sakin
    Keymaster

    @GiovannaChine: Post categories is shown in the simple post like this http://catchthemes.com/demo/simplecatch/uncategorized/beautiful-view-from-namobuddha/

    Sorry I don’t get it what you mean. Maybe you can share your site URL and explain in reference to your site.

    #27666

    It’s kinda hard to explain, plus my website is not live yet… But i can use this one you sent, it’s something like:

    Beautiful View from NamoBuddha
    By Catch Themes | 16 May, 2012 | Category | 3 Comments |

    #27772
    Sakin
    Keymaster

    @GiovannaChine: That will be like repeat as you can see in the page http://catchthemes.com/demo/simplecatch/uncategorized/beautiful-view-from-namobuddha/, you have categories below the post. But if you want to add it just below the header like you have mentioned. Then you need to create child theme. Then create functions.php in your child theme and add the following code.

    <?php
    /**
     * Display the page/post loop part
     * @since Simple Catch Pro 1.3.2
     */
    function simplecatch_loop() {
    
    	if ( is_page() ): ?>
        
    		<section <?php post_class(); ?> >
            	<header class="entry-header">
    				<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a></h1>
                </header>
                <div class="entry-content clearfix">
    				<?php the_content(); 
                    // copy this <!--nextpage--> and paste at the post content where you want to break the page
                     wp_link_pages(array( 
                            'before'			=> '<div class="pagination">Pages: ',
                            'after' 			=> '</div>',
                            'link_before' 		=> '<span>',
                            'link_after'       	=> '</span>',
                            'pagelink' 			=> '%',
                            'echo' 				=> 1 
                    ) ); ?>
               	</div>   
    		</section><!-- .post -->
            
        <?php elseif ( is_single() ): ?>
        
    		<section <?php post_class(); ?>>
            	<header class="entry-header">
                    <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a></h1>
                    <div class="entry-meta">
                        <ul class="clearfix">
                            <li class="no-padding-left author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php echo esc_attr(get_the_author_meta( 'display_name' ) ); ?>" rel="author"><?php _e( 'By', 'simplecatch' ); ?>&nbsp;<?php the_author_meta( 'display_name' );?></a></li>
                            <li class="entry-date updated"><?php $simplecatch_date_format = get_option( 'date_format' ); the_time( $simplecatch_date_format ); ?></li>
                            <li class="tags"><?php _e( 'Categories: ', 'simplecatch' ); ?> <?php the_category(', '); ?> </li>
                            <li><?php comments_popup_link( __( 'No Comments', 'simplecatch' ), __( '1 Comment', 'simplecatch' ), __( '% Comments', 'simplecatch' ) ); ?></li>
                        </ul>
                    </div>
               	</header>
                <div class="entry-content clearfix">
    				<?php the_content();
                    // copy this <!--nextpage--> and paste at the post content where you want to break the page
                     wp_link_pages(array( 
                            'before'			=> '<div class="pagination">Pages: ',
                            'after' 			=> '</div>',
                            'link_before' 		=> '<span>',
                            'link_after'       	=> '</span>',
                            'pagelink' 			=> '%',
                            'echo' 				=> 1 
                        ) );
                    ?>
    			</div>
                <footer class="entry-meta">
                	<?php 
                    $tag = get_the_tags();
                    if (! $tag ) { ?>
                        <div class='tags'><?php _e( 'Categories: ', 'simplecatch' ); ?> <?php the_category(', '); ?> </div>
                    <?php } else { 
                       	the_tags( '<div class="tags"> ' . __('Tags', 'simplecatch') . ': ', ', ', '</div>'); 
                    } ?>
               	</footer>
    		</section> <!-- .post -->
                
    	<?php endif;
    } // simplecatch_loop
    #28310

    Oh thank you sooooo much, Sakin!

    Really, its exactaly what i was looking for!

    #28372
    Sakin
    Keymaster

    @GiovannaChine: Thanks for your appreciation.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Display category besides date insted of author’ is closed to new replies.