Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.
This repository was archived by the owner on Jan 24, 2023. It is now read-only.

Home.php As Summaries #6

@nateonawalk

Description

@nateonawalk

Hey there,

It looks like this theme treats archives and categories with post summaries instead of pulling in full post texts, which is great. When setting a them to use home.php, though, it pulls in different 'content' -- the full texts of whatever post I have instead of "read more," etc.

I've reduced my home.php to:

<?php get_header(); ?>

	<div class="page-title">
		<div class="container">
				<?php get_sidebar(); ?>
			<div class="row">
				<div class="col-lg-12" id="category-title">
						<h1>My title</h1>
				</div><!-- /.col -->
				
	<div class="container" id="category-blogroll">
		<div class="row">
			<div class="<?php briar_main_class(); ?>">
				<div class="post-list" id="content" role="main">
				<?php if ( have_posts() ) : ?>
					<?php while ( have_posts() ) : the_post(); ?>
						<div class="row">
							<?php
								get_template_part( 'content', get_post_format() );
							?>
						</div>
					<?php endwhile; ?>
					<?php briar_pagination(); ?>
				<?php else : ?>
					<div class="row">
						<?php get_template_part( 'content'); ?>
					</div>
				<?php endif; ?>
				</div>
			</div>

		</div>
	</div>
				
			</div><!-- /.row -->		
		</div><!-- /.container -->
	</div><!-- /.page title -->

	

<?php get_footer(); ?>

How can I get the theme to treat this like an archive or category and not display full posts on the homepage?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions