Howdy mgrenier7,
Aha! I think the issue is that the default template used to render your posts is calling a WordPress function called the_excerpt();
rather than the_content();
.
Reference:
https://codex.www.ads-software.com/Function_Reference/the_excerpt
https://codex.www.ads-software.com/Function_Reference/the_content
The TLDR; version is that the_excerpt() strips any HTML tags, links, and formatting and just shows an excerpt, which, if not explicitly defined, takes a snippet from the post content.
So, it’s a bit confusing when you get started, but here’s how to fix:
- First, you’ll copy a file from the plugin to your theme
- You’ll customize that file for your needs
- Posts in Page will use that file to render your posts.
If you wish to change the output to include the full content of the post, you’ll need to tweak the output template. Best way to do this is documented on the plugin site:
How do I change the output template
Simply copy the posts_loop_template.php
to your theme directory and make changes as necessary.
You can even rename it – but, if you do, make sure to indicate that in the shortcode using the template=’template_name.php’.
So, I’d start by copying the posts_loop_template.php
from the Posts in Page plugin directory to your theme directory.
Then, open it up in an editor and you’ll probably see something like this:
<!-- Note: if you make changes to this file, move it to your current theme's
directory so this file won't be overwritten when the plugin is upgraded. -->
<!-- Start of Post Wrap -->
<div class="post hentry ivycat-post">
<!-- This is the output of the post title -->
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<!-- This is the output of the excerpt -->
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<!-- This is the output of the meta information -->
<div class="entry-utility">
<?php if ( count( get_the_category() ) ) : ?>
<span class="cat-links">
<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<span class="tag-links">
<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
</div>
</div>
<!-- // End of Post Wrap -->
Note the function <?php the_excerpt(); ?>
in the .entry-summary
<div>.
In the file you’ve copied to your theme directory (to protect your tweaks from plugin updates), you’ll change that line to read:
<?php the_content(); ?>
Here’s an example:
<!-- Note: if you make changes to this file, move it to your current theme's
directory so this file won't be overwritten when the plugin is upgraded. -->
<!-- Start of Post Wrap -->
<div class="post hentry ivycat-post">
<!-- This is the output of the post title -->
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<!-- This is the output of the excerpt -->
<div class="entry-summary">
<?php the_content(); ?>
</div>
<!-- This is the output of the meta information -->
<div class="entry-utility">
<?php if ( count( get_the_category() ) ) : ?>
<span class="cat-links">
<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<?php
$tags_list = get_the_tag_list( '', ', ' );
if ( $tags_list ):
?>
<span class="tag-links">
<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
</div>
</div>
<!-- // End of Post Wrap -->
Blammo!
I hope that helps.
Eric