Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
txp:search_result_count
Redesigning my site, The Turning Gate, and having a problem with search results. The txp:search_result_count tag is displaying its text, but isn’t displaying the numerical count of search results. Here’s the code from my default page:
<txp:if_search> <p style=“margin: 2em 0;”><txp:search_result_count /></p> <txp:article limit=“9999” form=“search_results” />
<txp:else />
<txp:if_article_list> <txp:article limit=“1” form=“article-front” /> </txp:if_article_list>
<txp:if_individual_article> <txp:article /> </txp:if_individual_article>
</txp:if_search>
And my search results form looks like this:
<div class=“searchresult”>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p><txp:search_result_excerpt /><br/>
<small><txp:permlink><txp:permlink /></txp:permlink> · <txp:posted /></small></p>
</div>
Offline
#2 2007-08-17 10:42:36
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:search_result_count
Try placing <txp:article pgonly="1" />
before <txp:search_result_count />
.
Offline
Re: txp:search_result_count
Beautiful!! Thank you!!
Offline
Pages: 1