Home  >  Article  >  Backend Development  >  How to randomly display only a single matching article page in wordpress search results?

How to randomly display only a single matching article page in wordpress search results?

WBOY
WBOYOriginal
2016-08-04 09:19:391020browse

I have found that it should be modified in function.php, but please give me some advice on what kind of code should be added, or which attribute should be modified.

If wordpress doesn’t catch your eye, you are welcome to teach me directly with php code, and I will figure it out myself.

Thank you.

Reply content:

I have found that it should be modified in function.php, but please give me some advice on what kind of code should be added, or which attribute should be modified.

If wordpress doesn’t catch your eye, you are welcome to teach me directly with php code, and I will figure it out myself.

Thank you.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn