Contextual Related Posts
Subtitle as excerpt? (4 posts)

  1. samforres_t
    Posted 3 years ago #

    Hello and thanks so much for developing this plugin...

    My question was regarding the post excerpt.

    I was wondering if there was a way to output my post's subtitles with the excerpt function rather than it outputting the first X amount of words from the post body?



  2. Ajay
    Plugin Author

    Posted 3 years ago #

    Am not sure what you mean by posts' subtitles. Could you please explain

  3. samforres_t
    Posted 3 years ago #

    Thanks for the quick reply and apologies for not being more clear.

    I've created a custom field for my posts that I've title "subtitle". It's essentially a secondary heading.

    What I'm trying to emulate is the related posts area seen on this site here. It looks as though he's using your plugin, and he's figured out how to use his post's subtitles as the excerpt, rather than the body copy.

    On my end, I can't seem to figure out how to get the plugin to output my custom field data rather than the stock body excerpt.

  4. Ajay
    Plugin Author

    Posted 3 years ago #

    What you could do is put that subtitle into the Excerpt of the post. The plugin doesn't support custom field data for the excerpt at this stage.

    You might need to manually edit the code of the plugin to get it to work with custom fields.

    function crp_excerpt($id,$excerpt_length){

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contextual Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.