WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Require a Simple PHP (!) if-else code… I think!

[Resolved] Require a Simple PHP (!) if-else code… I think!

  • Hi,

    The blog section on my website currently shows a thumbnail if you attach a featured image. What I want to happen is for an ‘Image not available’ image to display if there is no set featured image.

    I am a newbie to php so with a few trials and lots of errors still couldn’t manage it. From what I can tell, this is the piece of code I need to change from the loop-entry.php code:

    [Mangled code removed. Please post code between backticks or use the code button]

    I’m assuming I need something ‘else’ to tell it to display an image from a fixed url.
    Any help appreciated.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Require a Simple PHP (!) if-else code… I think!’ is closed to new replies.