본문 바로가기

전체 글

(184)
wp_query 현재 포스트 제외하는 방법 'post__not_in' => array($currentID)));while ( $my_query->have_posts() ) : $my_query->the_post(); ?>">post__not_in 을 통해 현재 포스트의 id를 제외시켜버리면 된다.
kboard 스킨 글쓰기 문제 http://www.cosmosfarm.com/threads/document/11917
워드프레스 이전작업, 복사작업 후 db 테이블 변경 쿼리 UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); UPDATE wp_postmeta SET meta_value = replace(meta_value,'htt..
absolute img 비율 갈무리 ※ 이미지 비율 구하는 사이트http://andrew.hedges.name/experiments/aspect_ratio/ ※ 구한 이미지 비율을 퍼센트로 환산하는 방법100 / (가로비율/세로비율) .galleryImageWrapper { background-color: #000; width: 100%; padding-bottom: 56.25%; position: relative; } .galleryImageWrapper img { position: absolute; width: 100%; top: 0; left: 0; height: 100%; } Example 16:9 Aspect Ratio.container { padding-top: 56.25%; /* 16:9 Aspect Ratio */ } Try..
네이버 지도 api v3로 변경되서 적용을 해봣다. 네이버 지도 JS api v2 버전이 12월에 종료된다는 메일을 받아서v3버전으로 마이그레이션 해봤다. 참고: https://navermaps.github.io/maps.js/docs/tutorial-0-Getting-Started.html https://www.handream.net/company/location/head-office/ 이곳 페이지에 적용해봤다.
Kboard 특정 게시판 리스트 정렬 순서 KBContentList.class.php 수정. if ($this->board_id == 게시판번호)$orderby = apply_filters('kboard_list_orderby', '`date` ASC', $this->board_id); $this->sort 의 종류 날짜순: date추천순: vote조회순: view업데이트순: update
멀티사이트 prefix 디렉토리 설정일때 ※ htaccess 수정 # BEGIN WordPressRewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]# add a trailing slash to /wp-adminRewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^ - [L]RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) wordpress/$2 [L]RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)..
워드프레스 페이지 body에 slug 명 추가하기 //Page Slug Body Classfunction add_slug_body_class( $classes ) {global $post;if ( isset( $post ) ) {$classes[] = $post->post_type . '-' . $post->post_name;}return $classes;}add_filter( 'body_class', 'add_slug_body_class' ); http://www.wpbeginner.com/wp-themes/how-to-add-page-slug-in-body-class-of-your-wordpress-themes/