lundi 26 février 2018

Only search for things wich are shown in frontend in Wordpress

I want to customize my Wordpress search. The problem is that I have for example news, where only the 6 newest of them are shown in my frontend. When I serach for it I see every news which has the post_status public in the database. Bit I only want to display the news I outpot un my frontend.

I possible way would be to simply change the post_status in my backend, but is there a way to automize this?




Aucun commentaire:

Enregistrer un commentaire