douzhi4311
douzhi4311
2018-11-01 20:32

如何包含<?php echo $ page; ?> wordpress中的内部联系表单7电子邮件

  • wordpress
  • php

How I can include dynamically name of page <?php echo $page; ?> inside contact form 7 in wordpress? I put code into "functions.php" but it is not working.

function cs7() {
  $var='<?php echo $page; ?>';
  $html='<p>'.$var.'</p>';
  return $html;
}

 add_shortcode('cs7', 'cs7');
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换