• Resolved creapress

    (@creapress)


    Hello,

    I modifed the template for twig > inline.twig to change authors list in a post or list of posts. For exemple I need something like:
    “By author_name | Verified by 2nd_author_name | post_date

    I use <?php do_action('pp_multiple_authors_show_author_box', false, 'inline'); ?>
    to display authors name and I changed the inline.twig with this code:

    <div class="s-post-author">
            <div class="s-author-person">
                <span class="pp-multiple-authors-layout-inline author_index_{{ loop.index }} author_{{ author.slug }}">
    
                    {% if loop.index == 1 %}Par {% endif %}
                    {% if loop.index == 2 %}  Vérifié par {% endif %}
                        <a href="{{ author.link }}" class="{{ item_class }} author-post-meta"
                           rel="author">{{ author.display_name|raw }}</a>
                </span>
            </div>

    Well it worked perfectly before but since a while it s not working anymore and I get:
    author_name , | 2nd_author_name | post_date
    or
    author_name & 2nd_author_name

    Would you have an idea why my changes are not taken in account anymore?

    Thanks for your attention

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modify authors list of a post (before, before last)’ is closed to new replies.