Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7545671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:59:24+00:00 2026-05-30T08:59:24+00:00

I’m pretty new to wordpress, html, css, and javascript and would love your help

  • 0

I’m pretty new to wordpress, html, css, and javascript and would love your help if possible:

I’m trying to create a dual slider for the featured content area of my blog where there will be three featured youtube videos on the left slider, and the post excerpt on the right slider. Here’s how I picture it.

I think i’m doing this inefficiently at the moment; using dualslider

Right now I have three divs on the right panel, one for each post where the_excerpt() is being output in each div:

<div class="detail" >
      <?php $args=array('tag' => 'Featured1', 'showposts'=>1, 'caller_get_posts'=>1);
               $my_query = new WP_Query($args);
                      if( $my_query->have_posts() ) 
                {
                      while ($my_query->have_posts()) : $my_query->the_post(); ?>
                      <p><a href="<?php the_permalink() ?>" <?php the_title(); ?></a></p>
                      <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>

                      <h3><?php the_excerpt(); ?></h3>
                        <?php endwhile;
                }
                      wp_reset_query(); ?>
</div><!--END detail1-->

And three divs on the left, one for each video where the_content is being output to each div:

<div class="detail" >
      <?php $args=array('tag' => 'Featured1', 'showposts'=>1, 'caller_get_posts'=>1);
               $my_query = new WP_Query($args);
                      if( $my_query->have_posts() ) 
                {
                      while ($my_query->have_posts()) : $my_query->the_post(); ?>
                      <p><a href="<?php the_permalink() ?>" <?php the_title(); ?></a></p>
                      <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>

                      <h3><?php the_content(); ?></h3>
                        <?php endwhile;
                }
                      wp_reset_query(); ?>
</div><!--END detail1-->

The three posts that I want featured are each tagged Featured1, Featured2, and Featured3, and the post content is just the iframe youtube embed code followed by whatever I want to be in the right content panel.

Finally, aside from it being difficult to format the carousel size of the videos given i don’t really understand the dualslider javascript file, my other problem is that I need the currently playing video to be paused when you move from slide to slide similar to the functionality provided in AnythingSlider (http://css-tricks.com/examples/AnythingSlider/#panel1-4).

Any help would be much appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:59:26+00:00Added an answer on May 30, 2026 at 8:59 am

    Try this…

    https://gist.github.com/1848388

    I’ve added the query and loops php into the index.html demo file.

    This is the demo pack I downloaded… Dual Slider Demo File

    I have not tested it so it may not work ha, and I’ve adjust your query to retrieve the latest 3 posts with the tag ‘Featured’.

    Also instead of using <?php the_content(); ?> for the image or video, why not use a custom field, this way you can still have the full article content in your post.

    If you use <?php the_content(); ?> for the featured image or video in the slider, then all your post content will feed into that area, which could be a pain if you have lots of text and other images in your post.

    So I’ve included the custom field in my gist, replacing <?php the_content(); ?>, all you have to do is create a custom field called…

    Slider Featured Image

    …and paste the image code or video embed code into this. Once you’ve created this custom field, Slider Featured Image will be saved and you will be able to select it from a dropdown in the post editor on other features.

    I’ve commented through out the gist so you know whats going on.

    Good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
I am trying to render a haml file in a javascript response like so:
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.