mvlcek Wrote:There is also a simple alternative:if I write
- include the image in the first paragraph of the page
- call the search results with parameter numWords=1p (1 paragraph), which should output the HTML of the first paragraph including the picture.
Code:
<?php get_i18n_search_results(array('tags'=>'blog', 'DATE_FORMAT'=>'%d.%m.%Y - %H:%M', 'max'=>2,'showLanguage'=>0, 'lang'=>'ru', 'numWords'=>1p,'HEADER'=>null)); ?>
Code:
Parse error: syntax error, unexpected T_STRING, expecting ')' in D:\home\0getsimple.ru\www\plugins\exec-php.php(33) : eval()'d code on line 2