Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // phpを使用していない場合
- function mod_cv() {
- $html = file_get_contents(TEMPLATEPATH . '/inc/mod_cv.php');
- return $html;
- }
- add_shortcode('mod-cv', 'mod_cv');
- // phpを使用している場合
- function breadcrumb() {
- ob_start();
- include(TEMPLATEPATH . '/inc/breadcrumb.php');
- $html = ob_get_contents();
- ob_end_clean();
- return $html;
- }
- add_shortcode('breadcrumb', 'breadcrumb');
Add Comment
Please, Sign In to add comment