WordPress.org

Ready to get started?Download WordPress

Forums

WP to Buffer
[resolved] Would be nice to be able to filter title (3 posts)

  1. recordrewindplay
    Member
    Posted 5 months ago #

    I use custom post types, for some of which I use add_filter to modify the post title in certain places. For example, one post type is for music tracks, and I take the value of a custom field and insert that before the post title so it is displayed as:

    {artist} - {post title}

    WP To Buffer uses get_post to extract post information. As far as I know there is no way of filtering any of the fields before the query is run, so I can't filter the title at all to include the artist, which means I have to do it manually (and which takes away some of the convenience of using the plugin)

    Is there a way I can filter post titles?

    Thanks.

    https://wordpress.org/plugins/wp-to-buffer/

  2. n7 Studios
    Member
    Plugin Author

    Posted 5 months ago #

    I could support get_the_title(), so you'd need to check that your filter is applied to that.

    Please confirm.

  3. n7 Studios
    Member
    Plugin Author

    Posted 5 months ago #

    Fixed in 2.3

Reply

You must log in to post.

About this Plugin

About this Topic