WordPress – posts header showing all – help me I have no idea what to do
-
I have this code in my header-teams.php but on the single-teams.php posts the header shows all of the teams header for some reason.
<?php $args = array( 'posts_per_page' => -1, 'offset' => 0, 'orderby' => 'title', 'order' => 'asc', 'post_type' => 'teams', 'post_status' => 'publish', 'suppress_filters' => true, ); $teams = get_posts( $args ); foreach ( $teams as $post ) : setup_postdata( $post ); $video_mp4 = get_field('game-header'); ?> <?php // Build the Shortcode $attr = array( 'mp4' => $video_mp4, 'webm' => $video_webm, 'flv' => $video_flv, 'poster' => $video_poster, 'preload' => 'auto' ); ?>
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WordPress – posts header showing all – help me I have no idea what to do’ is closed to new replies.