플러그인 설치시 ftp 정보 물어볼 때 추가할 php
wp-config.php 파일 제일 하단에 define('FS_METHOD','direct'); 이 코드만 추가하면 된다. http://www.hongkiat.com/blog/update-wordpress-without-ftp/
wp-config.php 파일 제일 하단에 define('FS_METHOD','direct'); 이 코드만 추가하면 된다. http://www.hongkiat.com/blog/update-wordpress-without-ftp/
jQuery('a[href="#top"]').click(function(e){ e.preventDefault(); jQuery('html, body').animate({ scrollTop: 0 },500) }); <a href="#top">Scroll to Top</a> #top ...
현재 로그인 한 유저의 정보를 불러오는 방법이다. 원문 글 – WordPress Codex Function Reference/wp get current user 예제 $current_user = wp_get_current_user(); /** * @example Safe usage: $cu...
<?php bloginfo('name'); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { echo ' | '.$site_description; } wp...
글이나 댓글에 달린 주소에 자동으로 링크(a)를 걸어주는 JS 플러그인. ex) http://wallel.com -> http://wallel.com 공식 홈페이지를 접속해보면 어떻게 작동하는지 이해하기 더 쉬우니 참고해볼것. 홈페이지...
// 숫자 타입에서 쓸 수 있도록 format() 함수 추가 Number.prototype.format = function(){ if(this==0) return 0; var reg = /(^[+-]?\d+)(\d{3})/; var n = (this + ''); while (reg.test(n...