在不同的Wordpress页面中显示HTML标签的内容?

Im working on a Wordpress portfolio site and there is a line of text

<?php get_template_part( 'post-meta-page' ); ?>

that pulls information from that file and displays it on the page. Right now it displays only the title of the blog/page. I want it to display a unique line of text for each page while keeping the original title. I looked into it a little bit and this could be referred to as parsing?

Example: from external file.

<html>
  <p class="homepage">Text for homepage</p>
  <p class="interior">Text for interior page</p>
  <p class="contact">Text for content page</p>
</html>

In other words, I want to call a specific class on one page and another class in another page. Any snippet of Javascript or PHP that can do this?

You need to edit the post-meta-page page and check where you are and add the appropirate text.

For example:

if(is_home()){
     <p class="homepage">Text for homepage</p>
}