Display image of child element in wordpress

Question

I currently display a list of children of a particular parent as below:

            <?php global $post;
                wp_list_pages( array(
                'child_of' => $post->ID, // Only pages that are children of the current page
                'depth' => 1 ,   // Only show one level of hierarchy
                'sort_order' => 'asc'
            ));
        ?>

How do I display images next to them? And is there a chance to style them in a way I want or is it always going to be displayed in some UL (just like it does now)

0
Michael D 5 months 2021-07-09T07:38:09-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse