• Resolved Halil ESEN

    (@halilesen)


    Hi,

    I want to show topics from some forums in the WP archive. For example, I have a category called News in WP. In my phpBB board, there are 3 different forums related to news. I want to show the topics published in these forums in the WP archive. Featured image (first image in first post, otherwise a default image), author (username of first post author), date (date of first post), category (say “Forum”), description (157 characters from first post, ellipsis at the end).

    Code of WP archive page:

    <?php
    $author = get_theme_mod( 'post_author_blog_archives' );
    $date   = get_theme_mod( 'post_date_blog_archives' );
    $categories   = get_theme_mod( 'post_categories_blog_archives' );
    ?>
    <div <?php post_class(); ?>>
    	<?php do_action( 'ct_mission_news_archive_post_before' ); ?>
    	<article>
    		<?php ct_mission_news_featured_image(); ?>
    		<div class='post-header'>
    			<?php do_action( 'ct_mission_news_sticky_post_status' ); ?>
    			<h2 class='post-title'>
    				<a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title(); ?></a>
    			</h2>
    			<?php ct_mission_news_post_byline( $author, $date, $categories ); ?>
    		</div>
    		<div class="post-content">
    			<?php echo wp_kses_post( ct_mission_news_excerpt() ); ?>
    		</div>
    	</article>
    	<?php do_action( 'ct_mission_news_archive_post_after' ); ?>
    </div>

    Is it possible to do this here?

    (This request is not from the WP Post – phpBB Topic integration. It is different.)

    Best.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Listing of phpBB Topics in the WP Archive’ is closed to new replies.