<?php
/**
* @package Make
*/
$author_key = 'layout-' . ttfmake_get_view() . '-post-author';
$author_option = ttfmake_sanitize_choice( get_theme_mod( $author_key, ttfmake_get_default( $author_key ) ), $author_key );
?>
<?php if ( 'none' !== $author_option ) : ?>
<div class="entry-author">
<?php if ( 'avatar' === $author_option ) : ?>
<div class="entry-author-avatar">
<?php
printf(
'<a class="vcard" href="%1$s">%2$s</a>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_avatar( get_the_author_meta( 'ID' ) )
);
?>
</div>
<?php endif; ?>
<div class="entry-author-byline">
<?php
printf(
// Translators: this string is an attribution of a post author. e.g. by Ernest Hemingway
esc_html__( 'by %s', 'make' ),
sprintf(
'<a class="vcard fn" href="%1$s">%2$s</a>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_html( get_the_author_meta( 'display_name' ) )
)
);
?>
</div>
<?php if ( is_singular() && $author_bio = get_the_author_meta( 'description' ) ) : ?>
<div class="entry-author-bio">
<?php echo wpautop( ttfmake_sanitize_text( $author_bio ) ); ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
]]>Now with the update to Customizr 3.3.1 had to disable the customizr-child/inc-old/parts/class-content-post_metas.php file. This means reverting to the unwanted paragraph format for post meta content.
What I want to display for the meta (style):
By NAME on DATE
Category: CAT | Tags: TAG TAG TAG TAG
If info is not given (e.g., no tags), then that section simply doesn’t display.
Here’s a screen shot of what it used to be and what it should be.
Screen shot: https://drive.google.com/file/d/0B4mnNZ1F-EDsWkVzNV9hLUl3VGs/view?usp=sharing
That image is from this post: https://www.johnrothra.com/devotionalteaching/churches-search-committees-questionnaires-rethinking-process/
]]>I have a child theme with the following in the class-content-post-meta.php file:
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
if ( $tag_list ) {
$utility_text = __( '<span class="by-author"> By %4$s</span> on %3$s<br />Categories: %1$s ?| Tags: %2$s' , 'customizr' );
} elseif ( $categories_list ) {
$utility_text = __( '<span class="by-author"> By %4$s</span> on %3$s<br />Categories: %1$s' , 'customizr' );
} else {
$utility_text = __( '<span class="by-author"> By %4$s</span> on %3$s' , 'customizr' );
}
$utility_text = apply_filters( 'tc_meta_utility_text', $utility_text );
However, as you can see, the meta use the default version. I’m not sure if this happened after the upgrade to 3.2.7 or 3.2.8 since those versions were pretty much back-to-back. It was working properly with 3.2.6.
]]>I’m sure I missed the clear and obvious answer somewhere.
]]>My name is shown in by line below every post. If I click on my name, I want it to be redirected to my Google plus profile.
If it is possible let me know the procedure.
]]>I’m trying to optimize my authors with Google + and haven’t been able to do it in Esquire in a way that I like. This is what it looks like now: www.oh-i-see.com/blog. You can see my by line under the title of the article with the posting date. Since our theme already shows the date in the flag, I don’t want the date next to the by line, but when it’s not there, Google doesn’t pick it up. I put it in white text for a while, but heard that penalizes my Google score. Does anyone know? How are you guys resolving this issue?
Thanks,
Emily
I’m using a post archive page to display the five most recent posts – the category name, and nav link are called “Blog”. However, currently only posts categorized under “Blog” will show on this page.
I the five most recent posts from ALL categories displayed, with the ability to use categories to display the city where the post was written in the by line. I know this is possible with custom fields.
Thanks
]]>Currently, the relevant code on my Main Index Template is:
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>
The date shows up, but no author. How do I add this?
Thanks
www.fireitup.us
]]>