Ilya_Gr2016-07-10 15:35:47
Ilya_Gr, 2016-07-10 15:35:47



Answer the question

In order to leave comments, you need to log in

1 answer(s)
Igor Vorotnev, 2016-07-11

First, format the code, it's impossible to read. It should be like this:

    <i class="fa fa-search" aria-hidden="true"></i>
    $allsearch = &new WP_Query("s=$s&showposts=-1"); 
    $key = wp_specialchars($s, 1); 
    $count = $allsearch->post_count; 
    echo $count . ' '; 
    <span> для <?php echo get_search_query(); ?></span>

Not only is this easier to read, but it also allows you to isolate the specific block of code where the error occurs.
After formatting, run again and give here the full text of the error. Let's look further. Personally, I do not like the design from the start &new WP_Query("s=$s&showposts=-1"). Well _e('');, that's bullshit. In general, you have all the output through one place, it prinf()should be there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question