https://developers.google.com/custom-search/docs/queries에 구조를 사용하려고했지만 성공적으로 업로드 할 수 없습니다.Google 맞춤 검색 Autocomplete에서 XML을 만드는 방법은 무엇입니까?
<Autocompletions>
<Autocompletion term="cake" type="1" language=""/>
<Autocompletion term="strawberry.*" type="2" match="2" language=""/>
<Autocompletion term="vanilla" type="2" language=""/>
<Autocompletion term="apple" type="3" language="">
<Promotion id="1" queries="dessert" title="Apple pie for dessert!" url="http://www.example.com/applepieforsale"
start_date="" end_date="" image_url="" description="Apple pie is the best dessert ever!"/>
<Promotion id="2" queries="apple" title="Buy Apple pie" url="http://www.example.com/applepieforsale"
start_date="" end_date="" image_url="" description="We stock the best apple pie in the world, right here."/>
</Autocompletion>
</Autocompletions>
내 웹 사이트에서 wordpress를 사용하고 있습니다. 게시물의 제목을 얻었고 Google 맞춤 검색을위한 문자열 쿼리로 사용하고 싶습니다.
날 자동 완성을 위해 XML을 생성하는 방법을 알아내는 데 도움이 바랍니다.