can i use specific images for thumbnails in post?

How do I use get_post_thumbnail_id for specific posts? <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <a href=”<?php the_permalink() ?>” class=”classtest”> <img src=”<?php $url= wp_get_attachment_url( get_post_thumbnail_id($post->ID) );echo $url; ?>” width=”300″ height=”300″ alt=”Avatar” class=”image img-r” > <div class=”middlee”> <?php $mm = get_post_meta($post->ID, ‘time-movie’,true); ?> <span><?php echo $mm; ?></span> <?php ?> </div>…

Details

Permission difference with scp “dir -r”, “dir/*”, and “dir/file.txt”

Recently I have been getting an error when trying to scp into a CentOS Linux release 7.7.1908 (3.10.0-1062.4.3.el7.x86_64). These commands work: scp dir/file.txt . scp -r dir/file.txt . But this command has stopped working: scp dir/* . The error is: insecure scp option not allowed. This account is restricted by rssh. Allowed commands: scp What…

Details

set header in .htaccess not working if REQUEST_URI contains a word

I need to set some headers if REQUEST_URI contains the “compile” word. My uri is: http://myurl/compile/123456/123456?token=myvalue This is the code in the .htaccess that DOES NOT work: Header always set MyHeaderCompile myvalue “expr=%{REQUEST_URI} =~ /compile/” This line does not set MyHeaderCompile header. If I change the line with this: Header always set MyHeaderCompile myvalue “expr=%{QUERY_STRING}…

Details

Can’t get Babel to compile with the “polyfill” plugin

I can’t seem to get my scripts to compile with Babel. I have installed @babel/polyfill npm install –save @babel/polyfill That gives me: babel /home/xxx/public_html/2018/js/lib/cat-ajax-scroll.js > /home/xxx/public_html/2018/js/lib-non-es6/cat-ajax-scroll.js npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of…

Details