' . $tagline; $out[] = ''; } $out[] = 'Site: ' . esc_url_raw( home_url( '/' ) ); $out[] = ''; $pages = get_pages( array( 'sort_column' => 'menu_order,post_title', 'number' => 25, 'post_status' => 'publish', ) ); if ( ! empty( $pages ) && is_array( $pages ) ) { $out[] = '## Pages'; foreach ( $pages as $page ) { $title = wp_strip_all_tags( (string) $page->post_title ); if ( '' === trim( $title ) ) { continue; } $excerpt = wp_strip_all_tags( (string) $page->post_excerpt ); $line = '- [' . $title . '](' . esc_url_raw( get_permalink( $page ) ) . ')'; if ( '' !== trim( $excerpt ) ) { $line .= ' : ' . wp_trim_words( $excerpt, 25, '…' ); } $out[] = $line; } $out[] = ''; } $out[] = '---'; $out[] = 'Generated locally by Everlange Connect (standalone mode).'; $out[] = 'A full AEO audit across 10 answer engines is available at https://everlange.com/'; return implode( "\n", $out ) . "\n"; } }