Syntax Supported Languages

Supported Languages The following languages are supported in the lang attribute: abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cil, cfdg, cfm, cmake, cobol, cpp-qt, cpp, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml, bnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno, intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, locobasic, lolcode lotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis, oberon2, objc, ocaml-brief, ocaml, oobas, oracle11, oracle8, pascal, per, pic16, pixelbender, perl, php-brief, php, plsql, povray, powershell, progress, […]

Posted in Wordpress | Comments Off on Syntax Supported Languages

Widget Logic

•!is_home() : 메인 페이지를 제외한 모든 페이지에 해당 위젯 출력 •is_single(7) : 해당 글의 post-id가 7 일때만 보이기 •is_single(‘hello-world’) : 포스트 페이지 중에 글 주소의 slug가 hello-world 일 때만 출력 •is_single(‘hello world’) : 포스트 페이지의 글 제목이 hello world 일때만 출력 •is_single(array(17, 19, 1, 11)) : 포스트 페이지 중에서 post id가 17, 19, 1, 11 일 때에만 보이기 •is_category(array(9,’blue-cheese’,’Stinky Cheeses’)) ) : 카테고리 페이지 중에 카테고리 id가 9 이거나, 카테고리 주소의 slug가 blue-cheese 이거나 또는 카테고리 이름이 Stinky Cheeses 일때 보이기 •is_tax( ‘flavor’, array( ‘sharp’, ‘mild’, ‘extreme’ ) ) •is_author( ‘john-jones’ ) •is_404()  •is_category(‘wordpress-tips’) || is_single() && in_category(‘wordpress-tips’) in 을 쓰는 경우: 카테고리내의 전 포스트 is를 쓰는경우: 카테고리 페이지 or […]

Posted in Wordpress | Comments Off on Widget Logic

What is a WordPress Shortcode?

Open a pair of PHP tags and write code to output the results of the “do_shortcode()” function. Pass the shortcode into “do_shortcode()” as a parameter, typing it out as a string. This is how it should look: <?php echo do_shortcode(‘[shortcode]’); ?> Use single quotes around the shortcode so you can type out a shortcode with an attribute containing double quotes, like this: <?php echo do_shortcode(‘[shortcode attribute=”setting”]’); ?>

Posted in Wordpress | Comments Off on What is a WordPress Shortcode?

How to use SortTable Post

SortTable Post [ sorttablepost ] HIDE STANDARD COLUMNS [ sorttablepost nothumb=”true” nodate=”true” nocats=”true” notags=”true” ] You can omit any undesired columns by using one or more of these shortcode options. SHOW CUSTOM POST TYPE [ sorttablepost type=”my-custom-post-type” ] You can specify the name of a custom post type (or `page`), instead of showing posts. USE CUSTOM TAXONOMIES [ sorttablepost cat=”my-custom-taxonomy” tag=”another-custom-taxonomy” ] You can replace the standard `Categories` or `Tags` columns (or both) with custom taxonomies. USE CUSTOM FIELDS [ sorttablepost meta=”Custom Field Key,Another Custom Field Key,Yet Another” ] As of version 4.0, you can add as many custom field columns as you like. Use a comma-seperated list of field […]

Posted in Wordpress | Comments Off on How to use SortTable Post

Limit word in the front widget

Front <?php echo limit_words(get_the_excerpt(), ‘5’); ?>   function limit_words($string, $word_limit) { $words = explode(‘ ‘, $string); // this next bit chops the $words array and sticks it back together // starting at the first word ‘0’ and ending at the $word_limit // the $word_limit which is passed in the function will be the number // of words we want to use // implode glues the chopped up array back together using a space character return implode(‘ ‘, array_slice($words, 0, $word_limit)); }  

Posted in Wordpress | Comments Off on Limit word in the front widget