Support » Plugin: Manual Related Posts » Change default "No Image" picture

  • Hello I´m trying to change default no image picture with no success:

    add_filter( 'bawmrp_no_thumb', 'change_bawmrp_no_thumb' );
    function change_bawmrp_no_thumb( $thumb ) {
      return 'http://altijara.net/wp-content/themes/al-tijara/images/Al-Tijara-logo-footer.png';
    }

    AND

    apply_filters( 'bawmrp_no_thumb', 'my_own_picture', 10, 2  );
    function my_own_picture( $thumb, $post_id )
    {
      return 'http://altijara.net/wp-content/themes/al-tijara/images/Al-Tijara-logo-footer.png';
    }

    Any help?, thanks!!!

    https://wordpress.org/plugins/baw-manual-related-posts/

Viewing 1 replies (of 1 total)
  • This worked for me:

    add_filter( 'bawmrp_no_thumb', 'change_bawmrp_no_thumb', 10, 2);
    function change_bawmrp_no_thumb( $thumb, $post_id) {
    	return 'http://altijara.net/wp-content/themes/al-tijara/images/Al-Tijara-logo-footer.png';
    }

    I also had to change the number of related posts displayed in settings to see the change. I guess it’s cached.

Viewing 1 replies (of 1 total)
  • The topic ‘Change default "No Image" picture’ is closed to new replies.