Title: Question About Designing a Theme
Last modified: August 19, 2016

---

# Question About Designing a Theme

 *  Resolved [oobedoob](https://wordpress.org/support/users/oobedoob/)
 * (@oobedoob)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/)
 * I didn’t think this question would fit in the ‘Theme” forum so if I’m wrong sorry…
   I’m trying to redesign my site and what I want to do is have the main page to
   have just the header, one static post and the footer. I then want a blog section
   for the rest of the site. Is this possible or should I just have the main page
   be in html?

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

 *  [Hax](https://wordpress.org/support/users/hax/)
 * (@hax)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/#post-1548038)
 * if you already read the documentation of themes [http://codex.wordpress.org/Theme_Development](http://codex.wordpress.org/Theme_Development)
   this is what you do just to get one post on you index.php file
 *     ```
       <?php get_header(); ?>
   
       	<?php query_posts( array( 'numberposts' => 1) );?>
       	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
   
       			<!--the content to display here-->
   
       	<?php endwhile; endif; ?>
   
       <?php get_footer(); ?>
       ```
   
 *  Thread Starter [oobedoob](https://wordpress.org/support/users/oobedoob/)
 * (@oobedoob)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/#post-1548071)
 * I get that part, the part that I don’t know if it would work is, having the above
   code in the index.php file, but then have a fully functional blog on another “
   page”. Basically I want the “Featured Content Gallery” plugin ([http://www.featuredcontentgallery.com/](http://www.featuredcontentgallery.com/))
   in the header, below that will be one static blog post with a html table and 
   images in it and below that will be the footer. Above the featured content gallery
   will be a menu that will have links as well as a link to a blog and here is where
   my question starts, as I stated above can I have that code in the index.php file
   yet still have a fully functional blog (multiple posts, header, footer, sidebars,
   etc…) within the same wordpress install or am I better off just coding a html
   page for the “index”?
 *  [Hax](https://wordpress.org/support/users/hax/)
 * (@hax)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/#post-1548111)
 * Then you just need to do a `$gallery = get_posts( 'parameters_here' )` which 
   will return just the post that you want and display your content like so `echo
   $gallery[0]->post_content`. your not going to be able to use the loop functions
   for the post.
 *  This is not going to affect your loop at all. so you should be able to display
   your loop below.
 * [http://codex.wordpress.org/Function_Reference/get_post](http://codex.wordpress.org/Function_Reference/get_post)
   
   [http://codex.wordpress.org/Function_Reference/get_posts](http://codex.wordpress.org/Function_Reference/get_posts)
 *  Thread Starter [oobedoob](https://wordpress.org/support/users/oobedoob/)
 * (@oobedoob)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/#post-1548133)
 * The code doesn’t seem to be making any sense to me for what I’m trying to do 
   and I think there might be some misunderstanding. What I want the front page 
   to look like is this: [http://132productions.com/site_mockup.html](http://132productions.com/site_mockup.html)
   and when someone click on the “BLOG LINK” on the top that will got to the the
   blog that had everything a normal blog would have. So is this possible to do 
   this on the same installation of wordpress?
 *  [Hax](https://wordpress.org/support/users/hax/)
 * (@hax)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/#post-1548194)
 * you can do what you want with the code that I gave you; you get the images/logos
   with get_posts( array( ‘posts_type’ => attachments )) and display the logos with
   your custom html/css and just remove the loop
 *     ```
       <?php query_posts( array( 'numberposts' => 1) );?>
       	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       			<!--the content to display here-->
       <?php endwhile; endif; ?>
       ```
   
 * or you can use a page for home page and add your custom html on the page to change
   your home page to a page instead of a list of posts go to settings > reading 
   > Front page displays > Front page: and change it to the page that you wan to
   use as home page.
 *  Thread Starter [oobedoob](https://wordpress.org/support/users/oobedoob/)
 * (@oobedoob)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/#post-1548210)
 * That’s what I wanted, the Front page option. I ended up finding out how to do
   it here [http://codex.wordpress.org/Creating_a_Static_Front_Page](http://codex.wordpress.org/Creating_a_Static_Front_Page)
   and used the single column no sidebar template. Thanks for your help.

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

The topic ‘Question About Designing a Theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [oobedoob](https://wordpress.org/support/users/oobedoob/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/question-about-designing-a-theme/#post-1548210)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
