• Theme: “Station 2.1.2” by PageLines

    My website: https://www.heleloa.com

    For the posts on my home page, I want each post to show an image, the title, an excerpt of the post, and a link or “more” link to show the entire post. The theme preview shows this layout.

    More specifically (if it helps) I want to show 5 of my most recent posts on my home page (with links to the entire post) and all of my posts on my “news” page.

    Here is a link to a pastebin of my _posts.php :

    https://wordpress.pastebin.ca/1950769

    Thanks so much for the help! Hope I was thorough and concise
    =)

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter heatherloa

    (@heatherloa)

    also, I’ve found that a lot of people are saying that this change works

    < ?php the_content(); ?>

    to

    < ?php the_excerpt(); ?>

    BUT, it doesn’t give the option of showing <–more–!>

    Thanks you, again, ahead of time for helping!

    Thread Starter heatherloa

    (@heatherloa)

    also, I’ve found that a lot of people are saying that this change works

    < ?php the_content(); ?>

    to

    < ?php the_excerpt(); ?>

    BUT, it doesn’t give the option of showing <–more–!>

    Thank you, again, ahead of time for helping!

    You can do it in your post click your mouse where you want the break then press Alt+Shift+T and that will put more line publish the post and when you view the post page you will see post with continue reading link.

    Thread Starter heatherloa

    (@heatherloa)

    When I did that, the backend of the post showed this symbol: ˇ
    But nothing changed on the frontend of my site

    If you change <?php the_content(); ?>for <?php the_excerpt(); ?> in the loop, then wordpress will only show the excerpts with a “continue reading” link.

    If you do this you do not need to use the More tag in the post as WordPress will output the first 55 words.

    There are some custom filters you can add in the functions.php to change these values.

    If you want a consistent look to your website then depending on the theme you should have loops for index.php, archive.php, category.php and search.php

    HTH

    David

    Thread Starter heatherloa

    (@heatherloa)

    Please forgive me Adeptris, I don’t quite understand what you’re saying. I’m still VERY new to this. I tried to change ; ?>for <?php the_excerpt(); ?> in my theme.css (which is the only place I’ve found <?php the_content() already exists, WP doesn’t show a “continue reading” option. If I try to edit my index.php, this is all that’s there:

    <?php
    */
    get_header();
    get_template_part(‘library/template_posts’);
    get_footer();

    ?>

    When you say that I should have loops in those 4 files that you mentioned, is that code that I need to write? Or is there an easier way for me to do this? I’m so sorry I probably sound ridiculous to you

    Ahh! ok!
    I downloaded the theme and not installed it, looking at the code you have an option for Excerpts = Blog, Single, All and Hide, as radio buttons in the theme setup options, use this to select where you want excerpts!

    HTH

    David

    Thread Starter heatherloa

    (@heatherloa)

    David – I appreciate the time and help you’re giving me. PLEASE don’t give up on me yet!

    I have zero clue as to where I need to edit radio buttons, or where to find Excerpts = Blog, Single… in my theme’s settings. I have a dropdown menu on my WP dashboard that allows me to change some things for the Station theme, but nothing that resembles what you’re talking about.

    I installed the theme and the radio buttons on the free download do not appear on my localhost.

    I went to Posts > Post > edit and there was a menu for station with no options, so they might be part of the ‘Pro’ theme.

    See if you can contact the author an ask, it is a nice feature rich theme, with loads of linked files and you are likely better not mesing with it.

    David

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to show excerpts of posts on home page’ is closed to new replies.