WordPress.org

Ready to get started?Download WordPress

Forums

Eighties
[resolved] post formats (6 posts)

  1. allwillsee
    Member
    Posted 1 month ago #

    i noticed that if i use the "status" post format and give the post a title and content in the body, on the home page it shows both the title and the body content. Is the intention to use the title area to fill in the status and leave the body area blank?

    Thanks!

  2. burakkaptan
    Member
    Posted 1 month ago #

    Hello,

    Could you specify clearly what your intention ? Maybe you show us on image .

  3. allwillsee
    Member
    Posted 1 month ago #

    Hi,

    If you go to my site http://chrisgreen.nl and look at the first post you'll see what I'm talking about. I put the post title in all caps and the post content in regular type to accentuate the difference. My preference is to not have a separate post title along with the post content. Of course, I can just put the "status" content in the post title. I'm just wondering if that is the idea in the design or if its something that would be adjusted.

  4. allwillsee
    Member
    Posted 1 month ago #

    sorry for not closing the link ;)

    again, my question is in regards to using the post format "status". Obviously with every other post format is this not an issue - you want to see a title above the content. As a "status" however, it looks a little strange to have the title and the content running into each other like they do, or even to have a title shown above the status at all.

    of course, I completely appreciate this awesome design and the functionality! No complaints here - just a question as to the intent of the design.

  5. burakkaptan
    Member
    Posted 1 month ago #

    You should go to inc file in the theme folder. You will see there post-formats.php. Open this file. Go to line 110. When you see there like that.

    function eighties_post_format_status_filter_the_content( $content ) {
    	if ( get_post_format( get_the_ID() ) !== 'status' ) {
    		return $content;
    	}
    
    	$content = get_the_title() . ' ' . get_the_content();
    
    	return $content;
    }
    add_filter( 'the_content', 'eighties_post_format_status_filter_the_content' );

    Just remove these lines. But the post title won't appear anymore. If you want post title to appear: you should go to content-status.php file in theme folder. Open it. And then just paste below codes on above of line 19:

    <header class="entry-header">
    		<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
    		<!-- <p class="entry-meta entry-meta-time">
    			<a href="<?php the_permalink(); ?>" rel="bookmark"><i class="fa fa-clock-o"></i><?php echo eighties_get_time_difference( get_the_date( 'Y-m-d H:i:s' ) ); ?></a>
    		</p> -->
    	</header><!-- .entry-header -->
  6. allwillsee
    Member
    Posted 1 month ago #

    That did it! Thanks, burakkaptan!

Reply

You must log in to post.

About this Theme

About this Topic