如何使用include / require在wordpress中使用snippets id到另一个帖子

Include function, not working in WordPress plugin woody snippets

I have 2 woody snippet files.

  • 1st - dbconfig
  • 2nd - check database connection

I want to use dbconfig file in check database connection file.

I tried using the id [wbcr_php_snippet id="25"] but it not working.

Any suggestions on how to resolve this?

Some other options I tried:

include('wbcr_php_snippet id="25"');

and also used

include('wp-admin/post.php?post=25');