This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: Post format kill meta info?


Yes I prefer that too so will keep testing. I can see there are no issues with index.php, template-list.php vs. meta data in that link. Show up in category and on front.

I only use a copy of content.php for content-link.php. And that means every posts, including std. format, gets meta block removed when not in single view, and set to full content = I must be doing something wrong.

If I remove the single view show_meta check, meta does show up since forced. Not like data has gone missing. If I do that for all content-XXX.php + content.php I am happy but seems wrong and of course single view check is gone.

Just like you do in content-archive.php

<?php themeblvd_blog_meta(); ?>

Anyway, below is what I am used to and why I will keep testing get_template magic until I get it. I like template idea better. This works for JumpStart, logic is the same I guess. “themeblvd_blog_meta” is like a “on top of each post” kind of hook, is now 🙂

add_action( 'themeblvd_blog_meta', 'post_format_remove_elements', 1 );
function post_format_remove_elements() {
  if( !current_theme_supports( 'post-formats' ) )
    switch ( get_post_format() ) {
      case 'link':
        remove_action( 'themeblvd_blog_meta', 'themeblvd_blog_meta_default' );
        remove_action( 'themeblvd_blog_tags', 'themeblvd_blog_tags_default' ); 
      default: // What ever is removed must be inserted again for format
        add_action( 'themeblvd_blog_meta', 'themeblvd_blog_meta_default' );
        add_action( 'themeblvd_blog_tags', 'themeblvd_blog_tags_default' ); 
  • This reply was modified 9 years, 1 month ago by karlo.
  • This reply was modified 9 years, 1 month ago by karlo.