# betterdocs/4.9.3/views/template-parts/author-archive-doc-list.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.3. 41 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/template-parts/author-archive-doc-list.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.3/raw/views/template-parts/author-archive-doc-list.php
- Modified: 2026-06-23T11:52:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/template-parts/author-archive-doc-list.php#L10-L20`.

```php
<div class="betterdocs-title-excerpt-lists">
    <?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
$custom_icon = betterdocs()->customizer->defaults->get( 'betterdocs_archive_list_icon' );
        $settings_list_icon = betterdocs()->settings->get( 'docs_list_icon' );
        if ( ! $custom_icon && $settings_list_icon ) {
            $custom_icon = $settings_list_icon["url"];
        }

        if ( $post_query->have_posts() ):
            while ( $post_query->have_posts() ): $post_query->the_post();
                ?>
                <div class="betterdocs-title-excerpt-list">
                    <h2 class="betterdocs-entry-title">
                        <span><?php betterdocs()->template_helper->icon( 'docs-icon', true ); ?></span>
                        <a href="<?php echo esc_url( get_the_permalink() ); ?>">
                            <?php echo esc_html( get_the_title() ); ?>
                        </a>
                    </h2>
                    <?php
                    echo wp_sprintf( '<span class="update-date">%s %s</span>', esc_html__( 'Last Updated:', 'betterdocs' ), esc_html( get_the_modified_date() ) );

                    add_filter('excerpt_more', function() {
                        return '...'; // Replace '[…]' with '...'
                    });

                    echo '<p>' . esc_html( get_the_excerpt() ) . '</p>';

                    remove_filter('excerpt_more', '__return_empty_string');
                    ?>
                </div>
                <?php
            endwhile;
            wp_reset_postdata();
        endif;
    ?>
</div>

```
