<button type="submit" class="kboard-thumbnail-button-small"><?php echo __('Search', 'kboard')?></button>
<?php if(isset($_GET['keyword']) && $_GET['keyword']):?>
<a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-thumbnail-button-small">검색초기화</a>
<?php endif?>
위와같이 코드를 정확히 넣었는데 아무런 반응이 없네요
이것만 넣어 보시겠어요?
<a href="<?php echo $url->set('pageid', '1')->set('category1', '')->set('category2', '')->set('target', '')->set('keyword', '')->set('mod', 'list')->toString()?>" class="kboard-thumbnail-button-small">검색초기화</a>
아래 코드로 하시면 검색 키워드가 있을 경우에만 버튼이 나옵니다.
<?php if(isset($_GET['keyword']) && $_GET['keyword']):?>
<a href="<?php echo $url->set('pageid', '1')->set('category1', '')->set('category2', '')->set('target', '')->set('keyword', '')->set('mod', 'list')->toString()?>" class="kboard-thumbnail-button-small">검색초기화</a>
<?php endif?>