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

Home.php As Summaries #6

Open
nateonawalk opened this issue Aug 16, 2017 · 0 comments
Open

Home.php As Summaries #6

nateonawalk opened this issue Aug 16, 2017 · 0 comments

Comments

@nateonawalk
Copy link

nateonawalk commented Aug 16, 2017

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant