Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter adventr

    (@adventr)

    Like I said, I copied the file back again and it’s still not working.

    Thread Starter adventr

    (@adventr)

    OK, so this was working great until the update for the theme that just came up. I have copied the content-micropost.php file back into the proper directory and it’s no longer working.

    Any ideas what may have broken?

    Thread Starter adventr

    (@adventr)

    Wow, that was so simple! Thanks a lot, it’s working great now!

    Thread Starter adventr

    (@adventr)

    OK, so I managed to do this by creating a new archive page for the Custom Post Type (CPT) named ‘archive-micropost.php’ and it seems to be working well. ‘micropost’ is the name of the CPT.

    Now I am just trying to create a slightly different single post page for the same CPT and have created a ‘single-micropost.php’ file for the theme, which is almost working correctly, except that the content of the post is not showing up.

    Here’s what I’ve got:

    <?php get_header(); ?>
    
    <div <?php post_class(); ?>>
    	<article>
    		<?php do_action( 'post_before' ); ?>
    		<?php ct_period_featured_image(); ?>
    		<div class="post-container">
    			<div class='post-header'>
    				<h1 class='post-title'><?php the_title(); ?></h1>
    				<?php get_template_part( 'content/post-byline-micropost' ); ?>
    			</div>
    			
    			<div class="post-content">
    				<?php the_content(); ?>
    				<?php wp_link_pages( array(
    					'before' => '<p class="singular-pagination">' . __( 'Pages:', 'period' ),
    					'after'  => '</p>',
    				) ); ?>
    				<?php do_action( 'post_after' ); ?>
    			</div>
    
    			<div class="post-meta">
    				<?php get_template_part( 'content/post-categories' ); ?>
    				<?php get_template_part( 'content/post-tags' ); ?>
    				<?php get_template_part( 'content/post-nav' ); ?>
    			</div>
    		</div>
    	</article>
    	<div class="comments-container">
    		<?php comments_template(); ?>
    	</div>
    </div>
    
    <?php
    
    the_posts_pagination( array(
        'prev_text' => __( 'Previous', 'period' ),
        'next_text' => __( 'Next', 'period' )
    ) );
    
    get_footer();

    Any ideas?

    Thanks!

    Thread Starter adventr

    (@adventr)

    Nevermind, just got it figured out. Thanks

    Thread Starter adventr

    (@adventr)

    I’m trying to get rid of plugins and speed up my site (which is why I recently switched to the Period theme from my old outdated theme), so I’ll just remove the featured images from those pages. I thought it might make sense to have ‘none’ as an option in the feature image ratio dropdown menu or something.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)