1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open the post (Link) and a tab (New Link) with one click

Discussion in 'Programming' started by jason212, Dec 19, 2016.

  1. jason212

    jason212 Junior Member

    Joined:
    Feb 21, 2015
    Messages:
    150
    Likes Received:
    14
    Hey guys,

    I have a tube site and I want to change my code. If I click on one video it should be open and another tab (with the link which I addded) too. The link can stay in the code. This code is from loop-content.php I hope its right.

    Here is my code.


    <?php global $loop_view;
    $ajaxload = get_option('dp_archive_ajaxload');
    ?>

    <div class="loop-content switchable-view <?php echo $loop_view; ?>" data-view="<?php echo $loop_view; ?>" data-ajaxload=<?php echo $ajaxload; ?>>
    <div class="nag cf">
    <?php while (have_posts()) : the_post();
    get_template_part('item-video');
    endwhile; ?>
    </div>
    </div><!-- end .loop-content -->

    greets