2013-05-07, 16:31:08
(2013-05-07, 08:10:29)Oleg06 Wrote: Hi Martin, tell me how to write the code correctly?
Code:<?php get_i18n_search_results(array('addTags'=>'_parent_' + return_page_slug(),'words'=>' ','max'=>12,'numWords'=>50,'HEADER'=>null,'component'=>'renderproduct')); ?>
Code:
<?php get_i18n_search_results(array('tags'=>'_parent_'.return_page_slug(),'words'=>' ',
'max'=>12,'numWords'=>50,'HEADER'=>null,'component'=>'renderproduct')); ?>
In PHP you use . (dot) to combine strings. Use tags, unless the user enters tags himself and you want to add tags.