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

  • Home
  • SEARCH
  • 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 8313117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:23:09+00:00 2026-06-08T20:23:09+00:00

http://css-tricks.com/video-screencasts/ Try to look at this famous site which also powered by wordpress. The

  • 0

http://css-tricks.com/video-screencasts/

Try to look at this famous site which also powered by wordpress. The content in the loop is different from the single post. It use “dl” element in loop, but not main content in the single post. It something like it has a another brief summary of a post that will only display in loop.

So my trouble is how to display something(include image,article,video embedding) in the loop of multiple post but not display in single post itself, and vice versa.

  • 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-06-08T20:23:11+00:00Added an answer on June 8, 2026 at 8:23 pm

    First off, let’s start with what we know about the way this website is structured. The page that you’re looking at has either a Custom Post Type called “Video Screencasts”, or it’s using a Category of “Video Screencasts”, so the template used on the multiple post page is probably one of these:

    If video-screencasts is a category

    1. category-video-screencasts.php
    2. category-{cat_id}.php
    3. category.php

    If video-screencasts is a Custom Post Type

    1. archive-video-screencasts.php
    2. archive.php
    3. index.php (unlikely)

    Ultimately, whatever template file it may be utilizing won’t make much of a difference for you. These are just the possible options for how you can organize your own website in a similar fashion.

    Secondly, let’s look at the difference in structure between the multiple posts page and the single post page. The multiple post page is running a query, and returning a series of Featured Images and Excerpts based on the results of the query. The single post page is returning the actual Content of the post itself.

    So now, we need to understand how we would DO something like this. So let’s start with the images:

    This can be done one of two ways. When creating your theme, probably the most WordPress-friendly way you can attach a preview image to your posts is to Add Theme Support for Post Thumbnails. Another possible way would be to Add a Custom Field (perhaps name it “previewImg”) with a path to the image Thumbnail you would like to show.

    As for the excerpts:

    Posts and Pages have an optional Excerpt Field that you can set. To see this for yourself, navigate to your Post Editor, and look in the top right-hand corner of the page. You’ll see a button that says “Screen Options”. This will allow you to turn on various Post/Page controls that you can use to fine-tune your entries. Excerpts and Custom Fields are just two of the many options you can enable inside this area.

    Every Post and Page has an Excerpt. Normally, WordPress will default to the first 50 or so words of your post’s content, but you can override this by placing HTML into your Post’s Excerpt Field. Now it’s just a matter of generating the loop:

    <?php
    $query = new WP_Query(array('category_name'=>'video-screencasts'));
    if($query->have_posts()) : while($query->have_posts()) : $query->the_post();
    ?>
    <div class="post_result">
        <a class="thumb" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
        <h1 class="title"><?php the_title(); ?></h1>
        <p class="excerpt"><?php the_excerpt(); ?></p>
    </div>
    <?php
    endwhile;endif;
    ?>
    

    This is just an example that would work on a very basic level utilizing some of what I’ve described above. This is also assuming that “video-screencasts” is a category, and that theme support for Post Thumbnails has been enabled.

    As for the single post template, the code itself would be minimal:

    <?php
    if(have_posts()) : while(have_posts()) : the_post();
    ?>
    <h1 class="title"><?php the_title(); ?></h1>
    <?php
    the_content();
    endwhile;endif;
    ?>
    

    As mentioned, this is NOT exactly how their pages are set up and that these code examples are intended to illustrate how you can go about achieving what it is you want.

    All in all, you’ll need to read up a bit on how to utilize a lot of functions to tailor everything to your needs, and get your feet wet by writing some of your own code. But overall, I think this covers everything you need to know to help get you started in the right direction.

    Good luck.

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

Sidebar

Related Questions

In this link: http://css-tricks.com/snippets/jquery/jquery-plugin-template/ it has a line of code that says // Add
Just came across this by Chris Coyier - http://css-tricks.com/examples/CSSTabs/ Can anyone explain me, how
Is there anyway to apply this method from Chris Coyier to mobile phones: http://css-tricks.com/full-browser-width-bars/
I was just reading this article :- http://css-tricks.com/perfect-full-page-background-image/ Please note this css :- #bg
I've gone through the http://css-tricks.com/examples/BuildYourSocialPage/ which is great, but I just want to customise
I'm using this jquery http://css-tricks.com/examples/SmoothPageScroll/ to create a smooth page scroll, however each time
I'm using this jQuery plugin here: http://css-tricks.com/examples/MovingBoxes/ Has anyone used it or can you
I have the following code which I got from http://css-tricks.com/startstop-slider/ I have it all
I have the following code which I got from http://css-tricks.com/startstop-slider/ I would like to
I have the following code which I got from http://css-tricks.com/startstop-slider/ I would like to

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.