Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive 'últimas notícias' não está aplicando regra de não repetição de posts #238

Open
Thayna-Zacharias opened this issue Oct 7, 2024 · 1 comment
Assignees

Comments

@Thayna-Zacharias
Copy link
Collaborator

Verificado que a archive de últimas notícias não está aplicando a regra de não repetição de posts, que aparecem no cabeçalho e no bloco logo abaixo.
image

@Thayna-Zacharias Thayna-Zacharias added the bug Something isn't working label Oct 7, 2024
@Thayna-Zacharias Thayna-Zacharias self-assigned this Oct 7, 2024
@Thayna-Zacharias
Copy link
Collaborator Author

Orientação do Eve:
"A regra se aplica para blocos, como essa archive é feita no PHP, o grid de posts dela não possui essa regra.

Acredito que dê para implementar, mas é preciso testar antes de afirmar.

O bloco guarda em uma variável global os IDs já exibidos, então a ideia é usar o hook pre_get_posts e verificar se essa variável global está disponível e então remover esses posts da query."

@marinarcruz marinarcruz removed the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants