• Resolved jwrbloom

    (@jwrbloom)


    I’ve uploaded a number of images to a cloud service, and I moved them to NGG so I can just upload them to my WP installation as I go forward. I’m creating a profile system (linked above) that dynamically prints out the player’s image.

    So the page I linked below should print this image:

    src=”/wp-content/gallery/2018/henry_aaron.png”, which is how it shows in the backend of the NGG admin panel.

    I use this code:

    
    echo '<img src="/wp-content/gallery/20' . $line['grade'].'/'. strtolower($nFirst) . '_' . strtolower($nLast) .'.png">';
    

    It’s not printing. It’s just printing a 20 x 20 placeholder, and when I inspect the element it says, 20 x 20 Role: presentation.

    When I click on the link in the Inspect Element panel, it gives me a 404 error.

    How can I link to an image directly so I can do so dynamically?

    Thank you.

    • This topic was modified 4 years, 12 months ago by jwrbloom.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Mihai Ceban

    (@mihaiimagely)

    Hi @jwrbloom,

    Our efforts in the forum are more in offering support in breaking down what could be the source of the conflict (i.e. check server settings, check for possible plugin or theme conflict). If it’s something quick, like some CSS to add or remove a border, that’s OK.

    Other than that – we are not providing with code customization help.

    Thanks for your understanding

Viewing 1 replies (of 1 total)
  • The topic ‘Trying to link to an image via PHP…’ is closed to new replies.