Forums
Home / Plugin: Contextual Related Posts / Change the title
(@rafix777)
4 years, 1 month ago
Hi,
Now I see in code something like this '<li> . get_the_title . </li>'. I need change it to some CPT field, for example '<li> . $my_title . </li>'. How can I do it? Thanks in advance!
'<li> . get_the_title . </li>'
'<li> . $my_title . </li>'
(@ajay)
You can filter crp_title and replace it with any custom title of your choice.
crp_title
https://github.com/WebberZone/contextual-related-posts/blob/v3.0.4/includes/output-generator.php#L204