Last active
February 19, 2022 13:33
-
-
Save lucianobragaweb/7733929 to your computer and use it in GitHub Desktop.
Continuação: Remover páginas da busca WordPress. https://gist.github.com/lucianobragaweb/7227544
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* No caso de usar Post Types, podemos usar o 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; | |
// https://gist.github.com/lucianobragaweb/7227544 | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment