• Resolved wojtek31fhp

    (@wojtek31fhp)


    Hi,

    We have difficult problem. We used a Insert Page plugin in 2.0 version. After WordPress update to v5.5.1 insert page button disapeared from TinyMCE Advanced toolbar so we decided to remove plugin and install new version of Insert Page v3.5.6.

    We have Custom Post Type “Tables” and we insert that CPT to WYSISWYG editor. Than we have a file called insert-table.php which adds additional html around inserted CPT content (some table) from the_content() function.

    While we used version before v3 everythig was OK, but now the plugin omit this file and inserts only content from CPT without using our insert-table.php file.

    Can you suggest any solution?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paul Ryan

    (@figureone)

    It’s probably just that the custom template isn’t in a place where locate_template() can find it:
    https://developer.www.ads-software.com/reference/functions/locate_template/

    For most themes, this is the root theme folder. Make sure it’s visible as a Page Template when trying to create a new page.

    Thread Starter wojtek31fhp

    (@wojtek31fhp)

    @figureone Thanks for your answer, but I was searching in plugin code in insert-pages.php for a line similar to solution from earlier versions.

    $template = locate_template( 'insert-'.$post_type.'.php' );

    If I undersand properly above method was replaced with choosing template for CPT on meta-box? And there is no automatic solution like in previous versions?

    Plugin Author Paul Ryan

    (@figureone)

    I don’t think your code example was ever in the plugin, maybe you applied a hotfix at some point to do $template = locate_template( 'insert-'.$post_type.'.php' );?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin omits additional files for content’ is closed to new replies.