Post sub-title (3 posts)

  1. ventsyv
    Posted 3 years ago #

    How do I add a sub-title to a theme? I've tried a few different themes, and none of them has a sub-title. I kind of remember that at least one of them did have it, and I vaguely remember doing something to disable it, but it's possible I'm just confused.

    I guess I can use a custom field, but is that the only/preferred way?
    I don't mind making changes to the theme.

  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Inside the loop, use
    <?php thesubtitle() ?>

    Outside the loop, use
    <?php getthe_subtitle($id)?>
    $id is the page or post's ID.

  3. hody
    Posted 3 years ago #

    have you try this plugins?


    after that, you can put the function
    <?php if (function_exists('the_subtitle')){ the_subtitle(); }?>
    in loop-single.php under entry-title function
    <h1 class="entry-title"><?php the_title(); ?></h1>

Topic Closed

This topic has been closed to new replies.

About this Topic