FEEDBACK removing article title
This commit is contained in:
parent
e707843129
commit
f1c1a00fef
|
|
@ -2,7 +2,7 @@
|
||||||
$postId = $args['postId'];
|
$postId = $args['postId'];
|
||||||
$isArticle = is_singular('articles');
|
$isArticle = is_singular('articles');
|
||||||
$componentTitle = $isArticle ? 'Auteur·e·s de l\'article' : 'Auteur·e·s de la revue';
|
$componentTitle = $isArticle ? 'Auteur·e·s de l\'article' : 'Auteur·e·s de la revue';
|
||||||
$articleTitle = get_the_title($postId);
|
|
||||||
$authors = [];
|
$authors = [];
|
||||||
|
|
||||||
if ($isArticle) {
|
if ($isArticle) {
|
||||||
|
|
@ -16,9 +16,7 @@ if (empty($authors)) return;
|
||||||
?>
|
?>
|
||||||
<section class="authors-list">
|
<section class="authors-list">
|
||||||
<h3 class="authors-list__title"><?php echo $componentTitle; ?></h3>
|
<h3 class="authors-list__title"><?php echo $componentTitle; ?></h3>
|
||||||
<?php if ($isArticle && $articleTitle) : ?>
|
|
||||||
<p class="authors-list__article-title"><?php echo $articleTitle; ?></p>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php foreach ($authors as $authorID) : ?>
|
<?php foreach ($authors as $authorID) : ?>
|
||||||
<?php get_template_part(
|
<?php get_template_part(
|
||||||
'template-parts/authors/card-author',
|
'template-parts/authors/card-author',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user