- Introduced a new WordPress theme "BackPRO News" with a lightweight magazine-style design. - Added columns for tracking retry attempts and timestamps for unpublished/generated articles in the articles table. - Included remote service metadata fields in the sites table for better management. - Created log files for image replacements, installer actions, OpenAI article generation, and publishing processes. - Implemented a dashboard template for site management, including permalink settings and theme installation options.
29 lines
880 B
PHP
29 lines
880 B
PHP
<?php
|
|
if (!defined('ABSPATH')) { exit; }
|
|
get_header();
|
|
?>
|
|
|
|
<div class="bp-page-head">
|
|
<h1><?php the_archive_title(); ?></h1>
|
|
<div class="bp-meta"><?php echo esc_html((string) get_the_archive_description()); ?></div>
|
|
</div>
|
|
|
|
<?php if (have_posts()): ?>
|
|
<?php while (have_posts()): the_post(); ?>
|
|
<article class="bp-article-card">
|
|
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
|
<div class="bp-meta"><?php echo esc_html(get_the_date('Y-m-d')); ?></div>
|
|
<p class="bp-excerpt"><?php echo esc_html(wp_trim_words(get_the_excerpt(), 35)); ?></p>
|
|
</article>
|
|
<?php endwhile; ?>
|
|
<?php else: ?>
|
|
<div class="bp-article-card"><p>Brak wpisow.</p></div>
|
|
<?php endif; ?>
|
|
|
|
<div class="bp-pagination">
|
|
<?php echo wp_kses_post(paginate_links(['type' => 'plain'])); ?>
|
|
</div>
|
|
|
|
<?php get_footer(); ?>
|
|
|