displaying Subtitles in theme modules
-
Hello,
as a non-coder I’m pretty puzzled on how to get the subtitles displayed inside my portfolio-modules (theme newspaper) since
<?php echo $this->get_subtitle();?>
is not working there.I’ve helplessly tried lots of custom template calls but i figured now that the subtitles should be called in this kind of fashion (of course this example is concerning some other theme-related subtitle-type):
<?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>all I understand here (from reading about displaying custom fields) is that the postmeta must be called based on the very post ID, but I’m stuck. Could you give me a lift please?
Any help is highly appreciated! Cheers
- The topic ‘displaying Subtitles in theme modules’ is closed to new replies.