Title: jbdev's Replies | WordPress.org

---

# jbdev

  [  ](https://wordpress.org/support/users/jbdev/)

 *   [Profile](https://wordpress.org/support/users/jbdev/)
 *   [Topics Started](https://wordpress.org/support/users/jbdev/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jbdev/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jbdev/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jbdev/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jbdev/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jbdev/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Category Archive not showing content](https://wordpress.org/support/topic/category-archive-not-showing-content/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/category-archive-not-showing-content/#post-2685740)
 * Sorry I know this is a massiv pain but it is too late is there any way that this
   could be resolved in the short term, I can then do a fresh install and work from
   a child theme.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Manual Excerpt not showing](https://wordpress.org/support/topic/manual-excerpt/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/manual-excerpt/#post-2576347)
 * Thanks for the response, I now have the below but still no excerpt. All help 
   greatfully received.
 *     ```
       <div class="postcontent">
                   <div class="postthumb">
                   	<?php the_post_thumbnail(); ?>   <!--This shows the thumbnail in the post, always plase in the loop-->
                   </div>
                   <div class="postdetail">
                   	<h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                      	<span class="post_date"><?php the_time('j.m.Y') ?></span>
       				<?php
          				if (function_exists('has_excerpt') && has_excerpt()) the_excerpt();
         				else the_content('More...');
       				?>
                       	<!--<div class="postmetabottom"> Use this div to add comments back in
       					</div> -->
                   </div>
       		</div>
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Category Widget](https://wordpress.org/support/topic/category-widget-4/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/category-widget-4/#post-2127872)
 * resolved with CSS
 * #sidebar .widget_extended-categories h2
    {display:none;}
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unique user private page](https://wordpress.org/support/topic/unique-user-private-page/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/unique-user-private-page/#post-2037560)
 * Spot on thanks. As always I was looking for the over complicated option.
 * Thanks for your help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest News on static hompage](https://wordpress.org/support/topic/latest-news-on-static-hompage/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/latest-news-on-static-hompage/#post-1659997)
 * Thanks for your help chinmoy29 I now the following code working
 *     ```
       <?php if( is_front_page() ) { ?>					<!--This controls the small boxes div on the homepage-->
       <div class="coverboxes">
       <?php $posts = get_posts( "category=4&numberposts=2" ); ?>
       <?php if( $posts ) : ?>
            <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
              <div class="post">
   
                 <p class="post-info-home"><span class="coverbox_header"><?php the_title(); ?></span></p>
                 <div class="post-title-home">
              </div>
              <div class="entry">
                 <?php the_excerpt(); ?>
                 <em><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">Read more</a></em>
              </div>
            </div>
          <?php endforeach; ?>
       <?php endif; ?>
       </div>
       <?php } ?>
       ```
   
 * This code does not show the image in the post is there any way of pulling this
   into the homepage above the excerpt. Help great;y appreciated
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest News on static hompage](https://wordpress.org/support/topic/latest-news-on-static-hompage/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/latest-news-on-static-hompage/#post-1659940)
 * Progress
 * I now have the ‘latestnews’ categories showing only on the front page using the
   follwing,
 *     ```
       <?php if( is_front_page() ) { ?>
       <div class="latestnews">
       <h1>Latest News</h1>
       <ul class="latest-news">
       <?php
        global $post;
        $myposts = get_posts('numberposts=3');
        foreach($myposts as $post) :
        ?>
           <li><span class="post-info"><?php the_title(); ?><br/><?php the_time('F jS, Y'); ?></span><a href="<?php the_permalink(); ?>"></a></li>
        <?php endforeach; ?>
       </ul>
       </div>
       	<?php } ?>
       ```
   
 * I would like to show 3 lines of copy from each post, any ideas?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest News on static hompage](https://wordpress.org/support/topic/latest-news-on-static-hompage/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/latest-news-on-static-hompage/#post-1659929)
 * Ah progress
 * I have now have the relevant category showing on every page using the following
 *     ```
       <h1>Latest News</h1>
       <ul class="latest-news">
       <?php
        global $post;
        $myposts = get_posts('numberposts=3');
        foreach($myposts as $post) :
        ?>
   
       <li><span class="post-info"><?php the_title(); ?><?php the_time('F jS, Y'); ?></span><a>"></a></li>
        <?php endforeach; ?>
       ```
   
 * 2 questions
    I would like to put this in a div and show the div only on the homepage
   how? I would like to have 3 or 4 lines of each post showing as a teaser, how?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest News on static hompage](https://wordpress.org/support/topic/latest-news-on-static-hompage/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/latest-news-on-static-hompage/#post-1659925)
 * hmmm
    Have added in the code and this is bringing up nothing, please can you 
   show where i need to enter site specific information into the code.
 * Sorry very new to wordpress
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest News on static hompage](https://wordpress.org/support/topic/latest-news-on-static-hompage/)
 *  Thread Starter [jbdev](https://wordpress.org/support/users/jbdev/)
 * (@jbdev)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/latest-news-on-static-hompage/#post-1659912)
 * sorry to be dense but how do I get this to show only on the home page if I insert
   in to page.php?

Viewing 9 replies - 1 through 9 (of 9 total)