Sample Page

element and simple JS playlist handling. * – Add support for thumbnails, excerpts, post-thumbnails in your theme (add_theme_support). */ get_header(); ?>

Streamly

LogoutLogin

Featured

Curated for you

array(‘post’,’track’,’show’), ‘posts_per_page’ => 4, ‘meta_query’ => array( array(‘key’ => ‘is_featured’,’value’ => ‘1’), ), ); $featured = new WP_Query( $featured_args ); if ( $featured->have_posts() ) : while ( $featured->have_posts() ) : $featured->the_post(); ?> placeholder

placeholder

Featured title

Subtitle or description goes here.

Top Tracks

View all

‘track’,’posts_per_page’ => 8); $music_q = new WP_Query($music_args); $player_playlist = array(); // will collect tracks for JS if ($music_q->have_posts()): while ($music_q->have_posts()): $music_q->the_post(); // Assume each ‘track’ post has a custom field ‘audio_url’ storing a direct mp3 link $audio_url = get_post_meta( get_the_ID(), ‘audio_url’, true ); $thumb = has_post_thumbnail() ? get_the_post_thumbnail_url( get_the_ID(), ‘medium’ ) : get_template_directory_uri().’/assets/img/placeholder-420×240.png’; ?>

<?php the_title_attribute(); ?>

PlayNo preview

$audio_url,’title’=>get_the_title(),’thumb’=>$thumb); } endwhile; wp_reset_postdata(); else: echo ‘

No tracks found.’; endif; ?>

TV Shows

Browse shows

‘show’,’posts_per_page’ => 8); $shows_q = new WP_Query($shows_args); if ($shows_q->have_posts()): while ($shows_q->have_posts()): $shows_q->the_post(); $poster = has_post_thumbnail() ? get_the_post_thumbnail_url( get_the_ID(), ‘medium’ ) : get_template_directory_uri().’/assets/img/placeholder-420×240.png’; ?>

<?php the_title_attribute(); ?>

No shows found.’; endif; ?>

Genres & Categories

Explore by mood or genre

‘genre’, ‘hide_empty’ => false, ‘number’ => 12 ) ); if ( ! is_wp_error( $genres ) && ! empty( $genres ) ) { foreach ( $genres as $g ) { echo ‘‘.esc_html($g->name).’‘; } } else { // fallback badges $fallback = array(‘Pop’,’Hip-Hop’,’Drama’,’Comedy’,’Documentary’,’Rock’); foreach($fallback as $f) echo ”.$f.”; } ?>

thumb

Title

Artist / Show⏮▶️⏭

<?php
get_footer();