2014-12-23, 00:21:57
For some reason my news additionally appear right below the Search form.
I call the search form via component like this:
and I want to call news created with special pages in another component below, like this:
the settings in the Special Pages plugin for search results are as follows:
what am i doing wrong? Thank you!
I call the search form via component like this:
Code:
<?php get_i18n_search_form (array('slug'=>'search', 'numWords'=>'0', 'showTags'=>0, 'GO'=>'OK', 'PLACEHOLDER'=>'Search')); ?>
Code:
<?php get_i18n_search_results(array('tags'=>'news', 'DATE_FORMAT'=>'%d %B, %Y', 'max'=>4, 'i18n'=>0, 'lang'=>'ru', 'numWords'=>'1p', 'order'=>'created', 'showPaging'=>0, 'HEADER'=>'')); ?>
Code:
<h3><a href="<?php get_special_field('link','',false); ?>"><?php get_special_field('title','',false); ?></a></h3>
<p class="small"><?php return_custom_field('data') ?></p>
<?php get_special_field_excerpt('content', $numWords); ?>
what am i doing wrong? Thank you!