• Dear users!!!
    First of all I would like to express my delight of using this theme and I am really thankful to its superb author!

    I am wondering whether is it possible in content.php to add a line of code to add another part of the_content, for example if my post has a few <div></div> areas, I would like to show a specific <div> in post preview on a homepage

    So on the blog homepage below the title part and in between the excerpt part I would want to show for example a “subtitle” or a custom field

    How would I do that?

    I think that I need to add something here

    <div class=”post-meta group”>

    <p class=”post-category”><?php the_category(‘ / ‘); ?></p>

    <p class=”post-date”><?php the_time(‘j M, Y’); ?></p>
    </div><!–/.post-meta–>

    <h2 class=”post-title”>
    ” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?>
    </h2><!–/.post-title–>

    <?php if (ot_get_option(‘excerpt-length’) != ‘0’): ?>
    <div class=”entry excerpt”>
    <?php the_excerpt(); ?>
    </div><!–/.entry–>

Viewing 1 replies (of 1 total)
  • Hi Ortodox_1. I don’t have a solution at the moment but conceptually I think this is possible. I think you’d need some javascript to search for the correct element, load it into a variable and then echo it to the screen. If someone has a code snippet available maybe they can post it here. Otherwise I’ll see if I can come up with something over the weekend.

Viewing 1 replies (of 1 total)
  • The topic ‘Excerpt, show custom field under the title and between the excerpt’ is closed to new replies.