do_shortcode() function
do_shortcode( string $content, bool $ignore_html = false )
Search content for shortcodes and filter shortcodes through their hooks.
[Wordpress] 위젯없이 php 파일에 shortcode 삽입법
<?php echo do_shortcode('[mb_latest name="notice" title="공지사항" list_size="5" style=""]'); ?>
: 망보드에서 최신글을 뽑아올 때 쓰는 쇼트코드
- 출처 : illustudio 블로그 - 코르니유의 비밀 > 일상/잡상 > 워드프레스 – 위젯 없이 PHP 파일에 바로 쇼트코드(SHORTCODE) 삽입하기
https://developer.wordpress.org/reference/functions/do_shortcode/
https://www.thewordcracker.com/basic/shortcode-do_shortcode-function/
'WordPress > Action Hook, Filter Hook, Function' 카테고리의 다른 글
[Wordpress] Disable "Are you sure you want to log out?" Message (0) | 2018.11.04 |
---|---|
[Wordpress] Login/Logout Redirect (0) | 2018.11.03 |
[Wordpress] wp_footer() function (0) | 2018.07.08 |
[Wordpress] init hook (0) | 2018.07.08 |
[Wordpress] is_user_logged_in() (0) | 2018.07.08 |