[resolved] Outputting list of media files as HTML (2 posts)

  1. jbadlands
    Posted 6 years ago #

    I'm creating a media gallery on my front page. I would like to output something such as

        <a href=""><img src="image_thumnail" alt="" /></a>

    and similar for videos etc (I would like them in seperate lists for each media type)

    I've looked over plugins but I think they do a lot more than I need because I will be integrating my media gallery with my own front end interface. I just need to be able to output the html to display my media as list items.

    I envisiage a function in my theme to look something like this

         <?php echo list_of_images(); ?>


        <?php echo list_of_videos(); ?>

    My question is how where would I place these functions and how would I access the data (query the database) within those functions to return the poulated lists? I looked through the worpdress function reference but found nothing that looked like it would help.

    Any suggestions? Thanks

  2. MichaelH
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic