WordPress - edit the_content to move date and author below post title

I need a way to edit "the_content" and add the date and author under the title in my single posts.  I've tried adding a couple of filters to my functions.php file but I can't figure out how to separate out the Title, the rest of the post content and add the date and author in between.

I need:

Title
Date | Author
Content (without title)

Here's my content-single.php code:  (Link to sample post)

<?php
/**
 * Theme: Flat Bootstrap
 * 
 * The template used for displaying a single article (blog post) with sidebar
 *
 * @package flat-bootstrap
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

	<?php if ( is_single () ) : ?>
		<?php get_template_part( 'content', 'post-header' ); ?>
	<?php endif; ?>
	
	<div class="entry-content">
		<?php the_content(); ?>
		
		<?php // Show the categories and tags ?>
		<?php if ( is_single () ) : ?>
			<?php get_template_part( 'content', 'post-footer' ); ?>
		<?php endif; ?>

		<?php // If multiple pages, display next/previous page links ?>
		<?php get_template_part( 'content', 'page-nav' ); ?>
		
	</div><!-- .entry-content -->

	<?php //get_template_part( 'content', 'post-nav' ); ?>

</article><!-- #post-## -->

Open in new window

phillystyle123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

eemitCommented:
You should check what is in the file:
content-post-header.php
0
phillystyle123Author Commented:
content-post-header.php is output above the_content in content-single.php and it contains the meta info I want to output below the post title. How do I move this meta info into the_content instead of above it.

<?php if ( is_single () ) : ?>
		<?php get_template_part( 'content', 'post-header' ); ?>
	<?php endif; ?>
	
	<div class="entry-content">
		<?php the_content(); ?>

Open in new window

0
eemitCommented:
phillystyle123,
first of all, make always changes only in a child theme.
Read in WordPress codex about child themes.
Let me try this theme and I'll post back.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

phillystyle123Author Commented:
I am using a child theme. Please let me know if you find anything. Thanks.
0
eemitCommented:
What is wrong here, see screenshot attached below?
note: "Datum" means date :-)

To get Author displayed:
Copy content-post-header.php into your child theme's folder
and comment out these two lines as below:

<?php //if ( is_multi_author() ) : ?>
      &nbsp;|&nbsp;<span class="by-line">
      <span class="glyphicon glyphicon-user"></span>&nbsp;
      <span class="author vcard">
      <?php the_author_posts_link(); ?>
      </span>
      </span>
<?php //endif; ?>
flat_bootstrap_child_single_screensh.jpg
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phillystyle123Author Commented:
Although this isn't really the answer to the question, the question itself is misleading. "the_content" doesn't include the post title. The post title (in this particular theme) is in header.php.

What's going on here is that the author of this particular post added the title in the content so it looks like the title is appearing below the meta info (date, author).  I removed the post title from header.php so that's why the post title above the meta info is missing. Your screen shot led me to activate my parent theme which led to this revelation.

Thanks for the help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.