Support » Theme: Church » Adding subtitles to posts in Church / Omega

  • Resolved GiacomoB


    Hello, I would like to add subtitles to my posts on my blog ( but I haven’t been able to do so yet. I am using a plugin called KIA Subtitle ( whose readme.txt provides the following instructions for adding a subtitle to the post:

    Add the ‘the_subtitle()’ tag to your theme:
    if(function_exists('the_subtitle')) the_subtitle();
    If you need to ‘return’ the value, you can use get_the_subtitle() which accepts a $post_id parameter if you need to use it outside the loop
    if(function_exists('the_subtitle')) $subtitle = get_the_subtitle( $post_id );

    Further instructions on where to add the tag state:

    = Where do I add this code? =

    Unfortunately, I cannot tell you *exactly* what file to place the above code in because 1. I don’t know where you want to display the subtitle and 2. every theme’s structure is different.

    However, in general, the_subtitle() is a template tag so you will want to put it in a template file. Probably, you are looking for the file that contains your post loop. For most themes it’s *single.php* ( or *page.php* for pages ), but for many it could also be *content.php*. Assuming you want the subtitle to display directly after your main title, you’d place the above code after:

    <h1 class=”entry-title”><?php the_title(); ?></h1>

    However, I have looked through the Omega and Church .php files (page, content, functions, etc.) and I have not found the correct location (any location) that makes the code work. I’ve been trying for a while and since I’ve had no success I wanted to hear from the support staff/other users if they had any advice they could provide to help my issue. Where should I put the code to display the subtitle in either Church or Omega so that it displays on my website’s posts?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding subtitles to posts in Church / Omega’ is closed to new replies.