1. Gambuu23

    Gambuu23 Member Member

    Jul 25, 2016
    36
    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.

    Code:
    [/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]<?php global $loop_view;[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]$ajaxload = get_option('dp_archive_ajaxload');[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]?>[/FONT][/COLOR]
    
    [COLOR=#000000][FONT=arial]<div class="loop-content switchable-view <?php echo $loop_view; ?>" data-view="<?php echo $loop_view; ?>" data-ajaxload=<?php echo $ajaxload; ?>>[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]<div class="nag cf">[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]<?php while (have_posts()) : the_post();[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]get_template_part('item-video');[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]endwhile; ?>[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]</div>[/FONT][/COLOR]
    [COLOR=#000000][FONT=arial]</div><!-- end .loop-content -->


    greets
     
  2. AlbCoder

    AlbCoder Member Member

    Mar 22, 2011
    105
    as I se you have also item-video.php I think that you must paste that file instead of this loop
    However I didnt understand your question well because I dont see any link added there as you told above
     
    Last edited: Jan 8, 2017

Share This Page