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

111111111111111111111111111?

11111111111111111111111111111111111111111111111

Answer the question

In order to leave comments, you need to log in

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

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

<h2>
    <i class="fa fa-search" aria-hidden="true"></i>
    <?php 
    $allsearch = &new WP_Query("s=$s&showposts=-1"); 
    $key = wp_specialchars($s, 1); 
    $count = $allsearch->post_count; 
    _e('');  
    echo $count . ' '; 
    _e('результатов'); 
    wp_reset_query(); 
    ?>
    <span> для <?php echo get_search_query(); ?></span>
</h2>

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