Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Display author etc. in front page Reply To: Display author etc. in front page

#192055
AnniS
Participant

I have tried to add this from content-header.php:

<?php
$display_author = $bavotasan_theme_options[‘display_author’];
if ( $display_author )
printf( __( ‘Julkaissut %s’, ‘arcade’ ),
‘ . get_the_author() . ‘
);

$display_date = $bavotasan_theme_options[‘display_date’];
if( $display_date ) {
if( $display_author )
echo ‘ ‘ . __( ”, ‘arcade’ ) . ‘ ‘;

echo ‘<time class=”date published updated” datetime=”‘ . get_the_date( ‘Y-m-d’ ) . ‘”>’ . get_the_date() . ‘</time>‘;
}

$display_categories = $bavotasan_theme_options[‘display_categories’];
if( $display_categories ) {
if( $display_author || $display_date )
echo ‘ ‘ . __( ‘kategoriassa’, ‘arcade’ ) . ‘ ‘;

the_category( ‘, ‘ );
}

$display_comments = $bavotasan_theme_options[‘display_comment_count’];
if( $display_comments && comments_open() ) {
if ( $display_author || $display_date )
echo ‘ • ‘;

comments_popup_link( __( ‘0 kommenttia’, ‘arcade’ ), __( ‘1 kommentti’, ‘arcade’ ), __( ‘% kommenttia’, ‘arcade’ ) );
}
?>

to content.php but all I get is a blank row in front page under the posts header (it’s now there). When I add text to content.php below the posts header, it shows also the text in post page (there’s now example). Nonetheless, it doesn’t show that blank row (nor publication information as a double) in the post page.

Is it possible that somewhere is command to not to show that particular info row in front page?