Trying to show WordPress category query result as background image

You’ll have to code the output in the manner you want to display it. However you’ll have to generate the image link prior to the html part.

  1. Save the image in a variable $bgimage1;

  2. make the list using li and in the list item backgroun-image: <?php echo $bgimage1; ?>

error code: 523