- This topic has 5 replies, 2 voices, and was last updated 11 years ago by
Sakin.
-
AuthorPosts
-
April 26, 2014 at 11:16 pm #27645
GiovannaChine
MemberHi,
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 | CategoryThanks!
April 27, 2014 at 1:01 am #27663Sakin
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.
April 27, 2014 at 1:20 am #27666GiovannaChine
MemberIt’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 |April 27, 2014 at 6:36 pm #27772Sakin
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' ); ?> <?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
May 1, 2014 at 2:01 am #28310GiovannaChine
MemberOh thank you sooooo much, Sakin!
Really, its exactaly what i was looking for!
May 1, 2014 at 10:12 am #28372Sakin
Keymaster@GiovannaChine: Thanks for your appreciation.
-
AuthorPosts
- The topic ‘Display category besides date insted of author’ is closed to new replies.