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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:21:19+00:00 2026-06-11T05:21:19+00:00

I am looking for a method to amend my Blog page in order that

  • 0

I am looking for a method to amend my Blog page in order that the first post is being displayed in full and all other posts as excerpt.

The code for my blog page is as follows:

    <?php
        // Template Name: Blog Template
    ?>
    <?php get_header(); ?>
    <?php 
        global $more;
        $more = 0; 
    ?>
                <div class="container inner_content">
                    <div class="row">
                        <!--Page contetn-->
                        <div class="span8">
                            <?php if ( !is_archive() ) { ?>
                            <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('paged='.$paged.'&cat='.$cat); ?>     
                            <?php } ?> 
                            <?php if (!(have_posts())) { ?><div class="span12"><h2 class="colored">There is no posts</h2></div><?php }  ?>   
                            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); 
                            ?>
                            <?php $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); ?>
                            <section>
                                <div class="row <?php post_class(); ?>" id="post-<?php the_ID(); ?>">
                                    <div class="span2">
                                        <div class="ddate">
                                            <h5><i class="icon-calendar"></i> <?php the_time('d') ?> <?php the_time('M') ?> / <?php the_time('Y') ?></h5>
                                            <div class="firstA"></div>
                                        </div>
                                        <div class="meta">
                                            <span><strong><i class="icon-user"></i> Author:</strong> <?php the_author_meta('nickname'); ?></span>
                                            <span><strong><i class="icon-list-alt"></i> Tags:</strong> <?php $tag = get_the_tags(); if (! $tag) { ?> There is no tags<?php } else { ?><?php the_tags(''); ?><?php } ?></span>
                                            <span><strong><i class="icon-comment"></i> Comments:</strong> <a href="<?php the_permalink() ?>#comments"><?php comments_number('0','1','%')?></a></span>
                                        </div>
                                        <hr>
                                        <span class="share">Share: </span>
                                        <!-- AddThis Button BEGIN -->
                                        <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=ra-4f8811347196f281"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a>
                                        <!-- AddThis Button END -->
                                        <hr>
                                    </div>
                                    <div class="span6">
                                        <div class="blog_item">
                                            <div class="blog_head">
                                                <h3><a href="<?php echo the_permalink(); ?>"><?php the_title(); ?> </a></h3>
                                            </div>
                                            <?php if (get_post_meta($post->ID, video, true));{ ?>
                                                <?php echo get_post_meta($post->ID, video, true); ?>
                                            <?php }?>
                                            <?php if (( has_post_thumbnail())) { ?>
                                            <div class="view view-first">
                                                <a href="<?php echo $large_image_url[0]; ?>" rel="prettyPhoto"><img src="<?php echo $large_image_url[0]; ?>" alt="" /></a>
                                                <div clas="mask">
                                                    <a href="<?php echo $large_image_url[0]; ?>" rel="prettyPhoto" class="info"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/plus.png" alt="" /></a>
                                                    <a href="<?php echo the_permalink(); ?>" class="link"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/link.png" alt="Visit link" /></a>
                                                </div>
                                            </div>
                                            <?php } ?>
                                            <?php the_excerpt('<br><a class="btn btn-small" style=" margin-top:15px;" href="'. get_permalink($post->ID) . '">Read More</a>'); ?>
                                        </div>
                                    </div>
                                </div>
                            </section>
                            <?php endwhile;  ?> 
                            <?php endif; ?>
                            <section>
                                <hr style="margin-top:0px;">
                                <?php if (function_exists('wp_corenavi')) ?><ul class="pager" style="float:left;"> <?php wp_corenavi(); ?></ul>
                            </section>
                        </div>
                        <!--/Page contetn-->
                        <!--Sidebar-->
                        <div class="span4 side_bar">
                            <section class="blog_cat">
                                <div class="well">
                                    <?php get_sidebar(); ?>
                                </div>
                            </section>
                        </div>
                        <!--/Sidebar-->
                    </div>
                </div>
    <?php get_footer(); ?>

I am grateful if any expert can provide some help for this.

  • 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-11T05:21:21+00:00Added an answer on June 11, 2026 at 5:21 am

    You can simply use a boolean in your loop to test if it is the first post :

    Modify the beginning of the loop :

    <?php if ( have_posts() ) : $first=true; while ( have_posts() ) : the_post(); ?>
    

    And display content or excerpt depending on $first value :

    <?php if ($first) { $first=false; the_content(); }
    else the_excerpt('<br><a class="btn btn-small" style=" margin-top:15px;" href="'. get_permalink($post->ID) . '">Read More</a>'); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm looking for a method that answers randomly true or false by a given
I'm looking for a method or an event that would get fired when a
I am looking for a method to monitor a running program that I have
I´m looking for a method, which returns all days of a given month. I
I was looking for a method in ConcurrentDictionary that allows me to remove an
I'm looking for method or something, that will allow me to remove one thing
I Looking for a method that convert time string into Calendar look like this:
I'm looking for a method that will flatten a json hash into a flattened
I'm looking for a method that would allow me to check for valid IDs
I am looking a method to removes all duplicate points from a a X,Y,Z

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.