Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Continuação: Remover páginas da busca WordPress. https://gist.github.com/lucianobragaweb/7227544
<?php
/*
* No caso de usar Post Types, podemos usar esse mesmo truque para remover certos
* tipos de post da busca apenas incrementando alguns comandos em nosso código
*/
if($post->post_type == 'page' || $post->post_type == 'profissionais') continue; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment