Better WP Security plugin blocking calls using file_get_contents() method

You shouldn’t use file_get_contents() for remote requests. WordPress does the heavy lifting for you when determining what is compatible on your host. Instead of file_get_contents() use the following to check for 404s: $request = wp_remote_get($url); $status = $request[‘response’][‘code’]; if($status === 404){ //do something } You can also use wp_remote_retrieve_body($request) to get the contents of the … Read more

Posts 2 Posts: Display custom types connected to the same other custom type but with another connection

Maybe this could get you started: function get_loser( $winner_id ) { global $post; $tournament = get_connected_id( $winner_id, ‘won_final’ ); $loser = get_connected_id( $tournament[‘ID’], ‘lost_final’ ); return $loser; } function get_connected_id( $from_id, $connected_type ) { global $post; $result = array( ‘ID’ => null, ‘post_title’ => null, ); if ( null === $from_id ) return $result; $connected … Read more

Is this plugin safe to run?

wpdb::_insert_replace_helper() will escape the data: return $this->query( $this->prepare( $sql, $data ) ); But still … the base64 encoded string looks odd. That should have been four separate parameters, I think.

Some images on WordPress site are suddenly gone

You are using relative URLs in some places. That is, you are using this– <img src=”https://wordpress.stackexchange.com/bruce_lipton1.jpg” />— instead of this– <img src=”http://www.pureplantessentials.com/bruce_lipton1.jpg” />. Don’t do that. Relative URLs are very unreliable in most of WordPress. It has to do with the way that WordPress rewrites URLs. Your theme, for example, is at wp-content/themes/theme-name/ but those … Read more

Need to setup grid like thumbnail of recent posts on sidebar

You could use wp_get_recent_posts() to get the latest posts, like: <h2>Recent Posts</h2> <ul> <?php $args = array( ‘numberposts’ => ‘5’ ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ){ echo ‘<li><a href=”‘ . get_permalink($recent[“ID”]) . ‘” title=”Look ‘.esc_attr($recent[“post_title”]).'” >’ . $recent[“post_title”].'</a> </li> ‘; } ?> </ul> Then, use get_the_post_thumbnail() to get the Featured … Read more

Notify bar plugin not showing up

If you can’t work with code, then you probably can’t use Notify Bar, as it needs a change to the templates. Try looking for another notification plugin, there are plenty in the Plugin Repository.