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

Status
Not open for further replies.

Gambuu23

Active Member
87
2016
8
425
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
 
1 comment
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:
Status
Not open for further replies.
Back
Top