sacredpath, ok, you got me thinking again.
What I really need is image, quote, video, and would love to use another one as a substitute of ‘standard’ as you can’t filter on standard posts same way as you filter on other types.
So.. I played with quote post yesterday and I managed to got this to look as standard! yeah! Thanks for the advice above, I did need to play with CSS a little bit.
Here is how my content-quote.php looks like:
<?php
/**
* @package Ryu
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-wrap wrap clear">
<header class="entry-header">
<?php
$categories_list = get_the_category_list( __( ', ', 'ryu' ) );
if ( $categories_list && ryu_categorized_blog() )
echo '<span class="categories-links">' . $categories_list . '</span>';
if ( ! is_single() ) :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
else :
the_title( '<h1 class="entry-title">', '</h1>' );
endif;
?>
</header><!-- .entry-header -->
<footer class="entry-meta">
<?php ryu_entry_meta(); ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Komentarze (0)', 'ryu' ), __( 'Komentarze (1)', 'ryu' ), __( 'Komentarze (%)', 'ryu' ) ); ?></span>
<?php endif; ?>
<span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'ryu' ), get_post_format_string( 'quote' ) ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a></span>
<?php edit_post_link( __( 'Edytuj', 'ryu' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
<div class="entry-content clear">
<?php the_content( __( 'Czytaj dalej <span class="meta-nav">→</span>', 'ryu' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'ryu' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
?>
</div><!-- .entry-content -->
<a class="entry-format-badge theme-genericon" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>" title="<?php echo esc_attr( sprintf( __( '', 'ryu' ), get_post_format_string( 'quote' ) ) ); ?>"><span class="screen-reader-text"><?php echo get_post_format_string( 'quote' ); ?></span></a>
</div><!-- .entry-wrap -->
</article><!-- #post-## -->
and this is how it works:
https://szmerkolandia.pl/?p=6896
So, I was hoping I can do exactly the same and copy the same code into my content-image.php and it will work fine. So I did. But the result is this:
https://szmerkolandia.pl/?p=6900
Can you see how the image is displayed vs. quote post? And that little black icon is at the bottom of the post instead top right as with others?
I looked at CSS and I couldnt identify what else is causing this issues, the relevant bit for post_format image in style.css is only this:
/* Image */
.format-image .entry-format-badge:before {
content: "\f102";
}
Where do I look next? Help!