kcox117 on "Problem with Wordpress Search"

ساخت وبلاگ

Hello,

I’m having problems with the native search on my wordpress site. I followed all the instructions on this page…

https://codex.wordpress.org/Creating_a_Search_Page

… and I set up a search page using a search page template. For now this is just a blank page with URL /search with the search box on it.

However, when I type a keyword into the search box, such as “irrigation” (which should bring up tons of results on my website), and click the search button, it brings me to the /?s=irrigation results page successfully, but it doesn’t display the actual results - only grey dotted lines. When I inspect element on the page, I can see that these dotted lines are just CSS borders for what should be the results themselves, and I can see the individual divs for the specific search results in the code, but they’re just empty - as shown:

<div class="post-8561 page type-page status-publish hentry post_box top" id="post-8561">
</div>
<div class="post-8560 product type-product status-publish has-post-thumbnail post_box taxable shipping-taxable purchasable product-type-simple product-cat-outright instock" id="post-8560">
</div>
<div class="post-8559 product type-product status-publish has-post-thumbnail post_box taxable shipping-taxable purchasable product-type-simple product-cat-outright instock" id="post-8559">
</div>

The system knows how many and which exact products/pages/etc should be retued in search results, but it doesn't display the actual content.

Any idea on what could be causing this problem?

Thanks!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 215 تاريخ : سه شنبه 18 خرداد 1395 ساعت: 6:47