• Resolved xdrzuu

    (@xdrzuu)


    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'
    );
    ?>
    • This topic was modified 3 years, 3 months ago by xdrzuu.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    Looking at your site, you use bifrost theme.

    Since you use a commercial theme or plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    https://themeforest.net/item/bifrost-simple-portfolio-wordpress-theme/23180008

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product. Commercial products are not supported in these forums.

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.