• Hello and good day.

    I would like to make my wordpress blog look like a website. I want to make one post (the whole post, not excerpt) as my home page but have no idea how to do it.

    Here is an example of a wordpress site that i would like to build like: https://www.gethomemortgageloan.com/

    Any help would be greatly appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I edited each of the template files with html code from the html version of my site, took a bit of playing around but now it looks like a normal html site, but database driven.

    Thread Starter jayjay-bagiu

    (@jayjay-bagiu)

    Thank you for the fast response.

    I would like to make a sticky post, but the problem is that it only shows excerpt of that post and it shows other post below it as well.

    Is there a way to only show one full sticky post?

    You could change the number of posts per page to 1 in Admin/Settings/Reading but that would impact all pages. If you only want to restrict the front page to a single post, try editing the index.php template file in your theme and changing:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    to

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'posts_per_page' => 1,
    	'post__in'  => get_option('sticky_posts'),
    	'caller_get_posts' => 1
    	'paged' => $paged
    );
    query_posts($args);
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    This will return only the most recent sticky post if more than 1 post has been made sticky. If there are no sticky posts, it returns the last post published.

    Thread Starter jayjay-bagiu

    (@jayjay-bagiu)

    Is this code
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    same as
    ?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    because i tried changing it but when i refresh my site it goes blank?

    My bad. I omitted a critical comma. Try:

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'posts_per_page' => 1,
    	'post__in'  => get_option('sticky_posts'),
    	'caller_get_posts' => 1,
    	'paged' => $paged
    );
    query_posts($args);
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    Thread Starter jayjay-bagiu

    (@jayjay-bagiu)

    You’re a GENIUS esmi. Thank you so much!!!

    Just wanna ask for your opinion, since my sticky post will be on my front page, and on my recent post, does this consider as duplicate content?

    eg.
    https://www.mysite.com => will display my sticky post

    and when i click the post link on my recent post link,

    https://www.mysite.com/stickypost.php

    I wouldn’t worry about duplicate content. Google is smart enough to recognise 2 links to the same post and won’t penalise you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to make wordpress blog look like a website?’ is closed to new replies.