Using Font Awesome as post thumbnail

Load the FontAwesome library properly in your theme via wp_enqueue_scripts hook, then instead of using: <img src=”https://wordpress.stackexchange.com/questions/353224/XY” class=”card-img-top” alt=”…”> use the icons fa fa-whatever in your theme. Sure, you have to do some checks based on category etc. I’d try something like this: <?php // functions.php function wpse_script_loading(){ // This can be local or via … Read more

“The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working

There are two things wrong. First, you have an error in your SQL syntax. The following do not have a type defined: streetaddress NOT NULL, suburbaddress NOT NULL, postcodeaddress NOT NULL, I would assume these are “text” but MySQL doesn’t know that šŸ˜‰ So you probably meant them to be: streetaddress text NOT NULL, suburbaddress … Read more

Use wp_remote_get to get JSON instagram feed from public profile

Yes, it will do the same thing. Taken from the official docs: /** @var array|WP_Error $response */ $response = wp_remote_get( ‘http://www.example.com/index.html’ ); if ( is_array( $response ) && ! is_wp_error( $response ) ) { $headers = $response[‘headers’]; // array of http header lines $body = $response[‘body’]; // use the content } https://developer.wordpress.org/reference/functions/wp_remote_get/ Wether it will … Read more