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 7705905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:58:48+00:00 2026-05-31T23:58:48+00:00

I need to create a gallery in wordpress to show the latest 3 posts

  • 0

I need to create a gallery in wordpress to show the latest 3 posts. The gallery will show the image of the post with the title of the post and part of the post (the paragraph that is before –more– tag in wordpress). I need it to be dynamic just when I add a new post the gallery shows that.

well I did the following code

<div class="blogsgallery">

        <?php query_posts('showposts=3'); ?>

        <?php while (have_posts()) : the_post(); ?>
        <p>
        <h3>
            <a href="<?php the_permalink() ?>" 
rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
                <?php the_title(); ?></a>
        </h3>
        </p>

        <div class="entry-content">

            <div id="post-thumbnail">
              //the size of thumbnail 150X150 px  
              <?php the_post_thumbnail(array(150,150)); ?> 
            </div>

//The code will show only the text before the "Read More ..." tag !
                <?php 
                global $more;
                $more = 0;
                the_content("Read More ...");
                ?>
        </div>

        <?php endwhile; ?>

    </div>

This a loop to show the latest 3 posts. I need to make it a slider container. after a specific time, i.e 1 minute, slide 1 move to the left and show slide 2, etc …

Please see the photo for more information:

enter image description here

  • 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-31T23:58:49+00:00Added an answer on May 31, 2026 at 11:58 pm

    The easiest solution is to change the amount of posts that show up through your settings. I suppose that is not a good solution for you; here is another way to do this:

    You will need to edit a page in your theme. You may edit the main page; I’d recommend you make a new page template and use that as your front page.

    Then you create a variation of the loop and query_posts. Creating the loop with 3 posts (per page) would be done like this:

    query_posts( 'posts_per_page=3' );
    

    See more info in the WordPress codex; in particular, the template tags page.

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

Sidebar

Related Questions

I need to create a photo gallery service that is managed by users. I've
I need some jQuery plugin, tutorial or guidelines to create simple image gallery which
I need to create a gallery type application. Where i need display many image
I need to create slideshow for gallery. And one thing that I don't know
I'm working with wordpress and need to create a trigger that updates a table
I need to create a photo gallery for a website running IIS 4.0 or
Need to create a custom DNS name server using C which will check against
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>
I need to create a backup of a SQL Server 2005 Database that's only
I need to create a view on the iPhone that scrolls horizontally through a

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.