Support » Plugin: WP Sitemap Page » Feature Request: Filterable titles for CPTs

  • Hi Tony,

    I’m glad to see that the plugin is back to being available!

    I have a feature request – I would love to be able to easily filter the title used when outputting CPTs into the sitemap.

    At the moment, the code uses (on line 1013 of the main plugin file) $post_cpt->post_title, and the only way for me to modify this is to replace the entire HTML output using the provided ‘wsp_cpts_return’ filter.

    I have done this, but the solution seems unnecessarily complicated when all I want to do is modify the title on the way past.

    Would you consider adding a filter to allow the title to be modified before adding it to the HTML, possibly even using ‘the_title’ so my existing filter would just naturally also work here?

    Thanks for a great plugin.

  • The topic ‘Feature Request: Filterable titles for CPTs’ is closed to new replies.