<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GeoWeb &#187; array</title>
	<atom:link href="http://www.geoweb.blog.br/tag/array/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geoweb.blog.br</link>
	<description>Design e Tecnologia</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:42:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>WordPress &#8211; Excluindo resultados da busca</title>
		<link>http://www.geoweb.blog.br/wordpress/wordpress-excluindo-resultados-da-busca/</link>
		<comments>http://www.geoweb.blog.br/wordpress/wordpress-excluindo-resultados-da-busca/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 13:58:14 +0000</pubDate>
		<dc:creator>George Campos</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[exclude]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[paginas]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[resultados da busca]]></category>
		<category><![CDATA[search result]]></category>

		<guid isPermaLink="false">http://www.geoweb.blog.br/?p=442</guid>
		<description><![CDATA[Pra excluir alguns resultados da busca do wordpress, é algo bem simples. Abra o arquivo search.php do seu template WordPress e ache a string: &#60;?php while ( have_posts() ) : the_post(); ?&#62; Logo após adicione o seguinte código abaixo. No &#8230; <a href="http://www.geoweb.blog.br/wordpress/wordpress-excluindo-resultados-da-busca/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="padding-top:5px;padding-right:0px;padding-bottom:5px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=GeoWeb&link=http%3A%2F%2Fwww.geoweb.blog.br%2Fwordpress%2Fwordpress-excluindo-resultados-da-busca%2F&title=Wordpress+-+Excluindo+resultados+da+busca&desc=Pra+excluir+alguns+resultados+da+busca+do+wordpress%2C+%C3%A9+algo+bem+simples.+Abra+o+arquivo+search.php+do+seu+template+Wordpress+e+ache+a+string%3A%0A%26lt%3B%3Fphp+while+%28+have_posts%28%29+%29+%3A+the_post%28%29%3B+%3F%26gt%3B%0ALogo+&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=pt_BR&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=0&twbutton=1&twlang=en&twmention=georgecampos&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=pt_BR&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=pt-BR">
											</iframe>
										</div><p>Pra excluir alguns resultados da busca do wordpress, é algo bem simples. Abra o arquivo <strong>search.php</strong> do seu template WordPress e ache a string:</p>
<pre>&lt;?php while ( have_posts() ) : the_post(); ?&gt;</pre>
<p>Logo após adicione o seguinte código abaixo. No array adicione todos os <strong>ids</strong> que deseja excluir do resultado. Simples e limpo.</p>
<pre lang="php">&lt;?php
// Simple exclude search result - Exclude some pages, posts
// from search result WordPress - by George Campos
     $my_exclude = array(125, 148); // Add ids here
        if (in_array(get_the_ID(), $my_exclude, true)) {
        continue;
        }
?&gt;</pre>
<div style="padding-top:5px;padding-right:0px;padding-bottom:5px;padding-left:0px;;">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=GeoWeb&link=http%3A%2F%2Fwww.geoweb.blog.br%2Fwordpress%2Fwordpress-excluindo-resultados-da-busca%2F&title=Wordpress+-+Excluindo+resultados+da+busca&desc=Pra+excluir+alguns+resultados+da+busca+do+wordpress%2C+%C3%A9+algo+bem+simples.+Abra+o+arquivo+search.php+do+seu+template+Wordpress+e+ache+a+string%3A%0A%26lt%3B%3Fphp+while+%28+have_posts%28%29+%29+%3A+the_post%28%29%3B+%3F%26gt%3B%0ALogo+&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=pt_BR&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=0&twbutton=1&twlang=en&twmention=georgecampos&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=pt_BR&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=pt-BR">
											</iframe>
										</div>]]></content:encoded>
			<wfw:commentRss>http://www.geoweb.blog.br/wordpress/wordpress-excluindo-resultados-da-busca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

