hung99hn
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [Contact Form 7] Validate of input free_text of checkboxThanks for your reply,
I have tried as follow but error message is not shown. Could you help me to find what i am doing wrong?[checkbox* fav id:fav exclusive free_text "本サイト" "Twitter" "Facebook" "コンテスト募集サイト" "知人から紹介" "その他"][text fav-etc placeholder "雑誌など"] <span class="wpcf7-custom-item-error fav fav-etc"></span>in function.php
function wpcf7_validate_fav_etc( $result , $tag ) { $tag = new WPCF7_Shortcode( $tag ); if ( 'fav ' == $tag->name ) { if ( // 「好きなもの」(fav)が入力されていて、チェックボックスの選択に「その他」が含まれる ( isset( $_POST['fav'] ) && in_array( 'その他', $_POST['fav'] ) ) // 「好きなもの」の「その他」の欄が未入力 && ( ! isset( $_POST['fav-etc'] ) || 0 == mb_strlen( trim( $_POST['fav-etc'] ) ) ) ) { $result['valid'] = false; $result['reason'] = array( 'fav-etc' => ' 項目必須です。'); return $result; } } return $result; } add_filter( 'wpcf7_validate_text', 'wpcf7_validate_fav_etc' , 20,2);Reference: http://wpcj.net/1130
- This reply was modified 9 years, 6 months ago by hung99hn.
Since the Free Theme is limited this section for 3 last posts, but in source code, it takes 4 last post, It may be a bug of current source code.
Template-home.php
$loop = new WP_Query( array(
‘cat’ => $block_cat,
‘posts_per_page’ => 4,
)); ?>Posts_per_page should be “3”.
I solved it.
Forum: Themes and Templates
In reply to: [Zincy Lite] Slider is not Working at home pageHi,
I just install zincy lite theme, but my slider is not working:
http://mio.thantrau.vn/Could you give us a hint. Thanks
Viewing 4 replies - 1 through 4 (of 4 total)