add posts to profile and display author in not admin
This commit is contained in:
parent
07c4d3d000
commit
60e03a0f20
4 changed files with 11 additions and 5 deletions
|
@ -731,7 +731,7 @@ function wasmo_post_navi() {
|
|||
);
|
||||
previous_post_link(
|
||||
'%link',
|
||||
twentynineteen_get_icon_svg( 'chevron_left', 22 ) . '<em>Previous Post</em><br>%title' . $prev_post_img
|
||||
twentynineteen_get_icon_svg( 'chevron_left', 22 ) . '<em>Older Post</em><br>%title' . $prev_post_img
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
@ -746,7 +746,7 @@ function wasmo_post_navi() {
|
|||
);
|
||||
next_post_link(
|
||||
'%link',
|
||||
'<em>Next Post</em> '.twentynineteen_get_icon_svg( 'chevron_right', 22 ).'<br>%title' . $next_post_img
|
||||
'<em>Newer Post</em> '.twentynineteen_get_icon_svg( 'chevron_right', 22 ).'<br>%title' . $next_post_img
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Author: Evan Mullins
|
||||
Author URI: https://circlecube.com
|
||||
Template: twentynineteen
|
||||
Version: 1.10.17
|
||||
Version: 1.11.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: wasmo
|
||||
|
|
|
@ -174,7 +174,7 @@ if (
|
|||
<?php set_query_var( 'displayname', $curauth->user_login ); ?>
|
||||
<?php set_query_var( 'link', get_author_posts_url( $userid ) ); ?>
|
||||
<?php get_template_part( 'template-parts/content/content', 'user-spotlight' ); ?>
|
||||
<?php //get_template_part( 'template-parts/content/content', 'user-posts' ); ?>
|
||||
<?php get_template_part( 'template-parts/content/content', 'user-posts' ); ?>
|
||||
<?php get_template_part( 'template-parts/content/content', 'socialshares' ); ?>
|
||||
|
||||
<div class="is-layout-flex wp-block-buttons">
|
||||
|
|
|
@ -13,7 +13,13 @@ $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentyni
|
|||
|
||||
<?php if ( ! is_page() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php //twentynineteen_posted_by(); ?>
|
||||
<?php
|
||||
$author = get_post_field( 'post_author', get_the_ID() );
|
||||
$user = get_user_by('id', $author);
|
||||
if ( !$user->has_cap( 'manage_options' ) ) {
|
||||
twentynineteen_posted_by();
|
||||
}
|
||||
?>
|
||||
<?php twentynineteen_posted_on(); ?>
|
||||
<span class="comment-count">
|
||||
<?php
|
||||
|
|
Loading…
Reference in a new issue