Output subtitle in blog loop

Posted in: Newspaper
Post count: 9

How can the subtitle be outputted below the main post title in the blog loop?

I have tried to copy the code below from the single layout and changed $td_mod_single to $this->

<?php if (!empty($td_mod_single->td_post_theme_settings[‘td_subtitle’])) { ?>
<p class=”td-post-sub-title”><?php echo $td_mod_single->td_post_theme_settings[‘td_subtitle’];?></p>
<?php } ?>

What am I doing wrong?

Post count: 22421

Hello,
Please add this code in the module file you want to use on your blog page:

<?php $td_subtitle_module = get_post_meta($this->post->ID, 'td_post_theme_settings', true);  ?>
            <p class="td-sub-title"><?php  if(!empty($td_subtitle_module['td_subtitle'])){echo $td_subtitle_module['td_subtitle'];} ?></p>

Add the code in the corresponding file under the title: http://screencast.com/t/6qhiGeeGO
Thank you!

Post count: 11

Hi,

We need to output subtitle outside of the loop for FB instant articles ; what would be the easiest field to pull

e.g title is being fetched at <h1><?php the_title(); ?></h1>

Post count: 23312

Hello karanberi,

I assume that you are using a plugin to bring the FB instant articles in our theme because the theme does not have such an option for achieving that. So, please notice that our theme does not have such a tested plugin with this functionality and we cannot provide implementation and support for this type of plugin, sorry! If you want to develop our theme through adding some of these options and you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thanks for your understanding!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.