Skip to content
WJunction - Webmaster Forum

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

Status
Not open for further replies.
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.

About the author

G
Active Member · Joined
87
Messages
8
Reactions
121
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom