Support » Plugin: Terms descriptions » Don't work in Custom post type

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vladimir Statsenko



    The plugin uses ‘the_content’ filter, so by default it works on a custom post types.

    Could you send me a dump of one row from wp_posts table that contains a “Recipie” post? And the term that should be converted to the link.

    Also the problem can occure if you save content of “Recipie” posts in wp_postmeta table instead of wp_posts. In this case you can convert text “manually” in the “Recipie” post temlate.

    Thank you for your reply and your explanations.

    After checking, your plugin works in the custom post types Recipe, but it does not work in ShortCode.

    In this example, ( “Ingredients” and “Methods” is 2 shortcodes [ingredients][method] inserted into post_content in wp_posts.

    Do you have an idea for this to work?

    thank you sincerely

    Plugin Author Vladimir Statsenko



    Yes, I have a solution.
    You should find the 16th line in the file wp-content/plugins/terms-descriptions/includes/td_frontend.php
    add_filter( ‘the_content’, array( $this, ‘parse_content’ ) );
    and replace it with
    add_filter( ‘the_content’, array( $this, ‘parse_content’ ), 12 );
    This will force the plugin to parse the post content after applying all shortcodes.

    I will add this changes in the next plugin version (after proper testing, of course).

    Sincerely, Vladimir.

    You are the king!
    it works perfectly

    Thanks yous very much! Very nice help and plugin

    Plugin Author Vladimir Statsenko


    Glad to help you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Don't work in Custom post type’ is closed to new replies.