WordPress.org

Ready to get started?Download WordPress

Forums

Contextual Related Posts
Subtitle as excerpt? (4 posts)

  1. samforres_t
    Member
    Posted 1 year 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?

    Thanks.

    http://wordpress.org/extend/plugins/contextual-related-posts/

  2. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. samforres_t
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.