G
G
Genri_Rus2019-01-23 17:11:00
Iron
Genri_Rus, 2019-01-23 17:11:00

How to display get_post_meta in a loop?

Good day to all
There is a cycle:

if (have_posts()):
        while (have_posts()) : the_post();
            $img = get_the_post_thumbnail( get_the_ID(), array(80, 80) );
      $meta_post.='<li><a href="'.get_permalink( $post->ID ).'">'.$img.'</a>';
            $meta_post.= '<div class="myclass">
                            <h2 class="mytitle"><a href="'.get_permalink( $post->ID ).'">'.get_the_title().'</a></h2>
                            <p class="mytext"><span>' . get_post_meta($post->ID, 'example', true) . '</span></p>
                            </div>';
            $meta_post.= '</li>';
        endwhile; 
    endif;
    wp_reset_query();  
    $meta_post.= '</ul>
    </div>';  
      
    return $meta_post;

I know that get_post_meta definitely needs echo, but I can’t figure out how to display it in this loop

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vasily, 2016-05-25
@Foolleren

or maybe just passive cooling in the power settings, or the bios is so flashed,
I had a laptop until the fan warms up to 72 degrees and does not turn on.

G
GavriKos, 2016-05-25
@GavriKos

1) Does the cooler make noise during operation? How strong?
2) Did you completely disassemble the radiator on the blower? It can get very clogged there
3) I would not say that it is directly "very hot". What percentage?
Maybe it's just slippers to the cooling system ... Buy an additional cooling pad.

X
xmoonlight, 2016-05-25
@xmoonlight

Put www.almico.com/speedfan.php and try to make the cooler spin faster.

E
Error 502, 2016-05-25
@NullByte

My laptop has had about the same temperature since I bought it. if you use Windows, then there is something to load the system. but if, when loaded with some weak game, the temperature jumps sharply to 98-100 degrees, and the fan does not change the rotation speed, then the problem may be in the BIOS, or in the system itself, try downloading Speedfan and manually set the desired number of revolutions there.

M
MaksimProger54, 2016-06-01
@MaximProger54

change the cooler

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question