In WP platform is it possible to make frontpage only 1 post?

by awledd
8 replies
  • ECOMMERCE
  • |
I have many posts in my WP site. I want to display a single post when the homepage shows up. Is that possible?
#frontpage #make #platform #post
  • Profile picture of the author Nick Kon
    You can redirect your domain to the url of the single post you would like to show.
    {{ DiscussionBoard.errors[8231729].message }}
  • Profile picture of the author awledd
    Good idea. But will it have any seo side effect ?
    Signature
    {{ DiscussionBoard.errors[8232339].message }}
  • Profile picture of the author Nick Kon
    It will help that specific post rank for people searching your domain keywords.
    {{ DiscussionBoard.errors[8232517].message }}
    • Profile picture of the author dark witness
      you can...

      to be honest it's been so long since I used wp my skills may be a it rusty.

      I think there are two ways of doing it.

      you can setup a single page and make it static and just post the content on that page.

      Then you set up another page where all the other posts will appear.
      i think thats the best way of doing it. I have now forgotten the second way of doing it, lol.

      anyway, in wordpress admin menu;

      Go to Settings and open the settings menu. under settings menu click on "reading"

      This will open the reading settings. at the top you will see the first few options;

      "front page displays" you can set this to "your last post" or "static page" .

      Under "static page" you will see some drop down options to select what page you want to make stick to the front page and which page you want all your other posts to go to.

      I hope this helps
      {{ DiscussionBoard.errors[8234653].message }}
  • Profile picture of the author wellcool
    Or you could just create a page template that shows a specific post by ID. Then set that as your page template for your Home page, and set your site to show the Home page (instead of posts) as the front page.
    {{ DiscussionBoard.errors[8235279].message }}
  • Profile picture of the author awledd
    Will check suggestions. Thx all.
    Signature
    {{ DiscussionBoard.errors[8242064].message }}
  • Profile picture of the author GoForJacob
    Yes. Are you familiar with the WordPress loop?

    If so, in your theme file you want to include something like:

    PHP Code:
    <?php query_posts('posts_per_page=1'); if (have_posts()) : ?>
    <?php 
    while (have_posts()) : the_post(); ?>

        <div class="top-story">
            <div class="loop-post-content clearfix">
            
                <div class="article-featured-image">
                    <?php if ( has_post_thumbnail() ) { ?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_post_thumbnail(); ?></a><?php ?>
                </div>
                
                <div class="article-head">
                    <div class="loop-post-byline">
                        By <strong><a href="<?php the_author_url(); ?>"><?php the_author_link(); ?></a></strong> &ndash; <?php the_time('j M \'y'?>
                    </div>
                    <div class="article-headline">
                        <h1 class="article-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
                    </div>
                </div>
                
                <div class="article-excerpt">
                    <?php the_excerpt(); ?>
                </div>
            
            </div>
        </div>
        
    <?php endwhile; ?>
    {{ DiscussionBoard.errors[8242159].message }}

Trending Topics