hi i followed the solution of adding this code directly to my module 10 file
<?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>
but it is still unable to work as i cannot see the subtitle like this:
https://www.screencast.com/t/7zXYRUfgIkE
pls advise me …is this method still working? and i edited the code in with notepad++.
-
This topic was modified 7 years by
ashfrupt27.
Hi,
Seems to work – http://prntscr.com/mwufj0 – http://prntscr.com/mwufot
Do the posts have a subtitle set? – http://prntscr.com/mwug92
Copy that code exactly as it is provided in this topic
– https://forum.tagdiv.com/topic/how-to-write-different-post-titles-on-homepage-or-categories/
The modification can be made in a child theme, this way you will not lose the modification after a theme update – https://forum.tagdiv.com/the-child-theme-support-tutorial/
Let me know if you have more questions.
Thanks
i have set my article display under category settings in the theme panel to module 10.
https://prnt.sc/mwx19m (does this look like the correct file opened?)
i opened the module 10 file using notepad ++ and added the code in.does it looks correct?
https://prnt.sc/mwwpce
i set a subtitle like u did in a post. https://prnt.sc/mwx83r
but the article display still doesnt show any subtitles. https://prnt.sc/mwxa2n
Are the files i open correct?everything i did looks to be the same as what u did so im not sure what is wrong… pls advise thanks.
i have set my article display under category settings in the theme panel to module 10.
https://prnt.sc/mwx19m (does this look like the correct file opened?)
i opened the module 10 file using notepad ++ and added the code in.does it looks correct?
https://prnt.sc/mwwpce
i set a subtitle like u did in a post. https://prnt.sc/mwx83r
but the article display still doesnt show any subtitles. https://prnt.sc/mwxa2n
Are the files i open correct?everything i did looks to be the same as what u did so im not sure what is wrong… pls advise thanks.
It looks correct. The modification has to be made on the server, by editing the theme files, so if this is an example from your desktop – http://prntscr.com/mx7pod and you are indeed making the actual modification on the server it should work. I tried it again, works as intended.
You can make this modification with the WordPress theme editor as well
– http://prntscr.com/mx7ryz