SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Restrict images in Excerpt plugin

    Hey,

    I am using the following code to show the 2 latest blog stories on a homepage:

    PHP Code:
                <div class="panelcontent">
                    <?php
                    
    require('blog/wp-blog-header.php');
            
                    
    $iNumberOfPosts 0;
                    while (
    $iNumberOfPosts && have_posts()) : the_post('showposts=2'); ?>
                        
                        <div class="panelnews">
                            <span style="color:#999933"><?php the_time('j F Y'?></span><br/>
                            <strong><?php the_title(); ?></strong>
                            <p><?php content('20'); ?></p>
                            <?php $iNumberOfPosts++; ?>
                        </div>
                    <?php endwhile; ?>
                </div>
    On this page:

    http://www.generalstore-uk.com/

    See middle panel, the images are causing formatting issues. Is there a way i can NOT show the images here and show only the text?

    Thanks
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  2. #2
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have had a look on Google but can't seem to find anything specific to what i am trying to accomplish?

    Can anyone help?

    Thanks
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •