Viewing 15 replies - 1 through 15 (of 15 total)
  • go to your index.php file and change inside the loop the_content() with the_excerpt().

    Thread Starter KconleyK

    (@kconleyk)

    Thanks Peter that worked!

    One question after that change, is now it shows all the posts with just first paragraph of content, then […] after. However to read the whole post you have to click the post title. Is there a way to make it says “read more” after? or be able to click the […] to expand, in case people don’t know to click the title?

    Paste this snippet into you function.php

    <?php //read more link to wp_excerpt
    function new_excerpt_more($more) {
           global $post;
    	return '... <a href="'. get_permalink($post->ID) . '" class="readmore">read more</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    ?>
    Thread Starter KconleyK

    (@kconleyk)

    Where do I paste it?

    Thread Starter KconleyK

    (@kconleyk)

    Worked perfectly, thank you sir

    //edit… you was faster ??

    Thread Starter KconleyK

    (@kconleyk)

    Thanks, I have two more questions regarding this.

    1) That works when you go to the main blog page at
    https://www.averageguygolf.com/course-reviews however if you click on the categories from the home page https://www.averageguygolf.com it still makes them full length with in the category.

    2) On the home page, you can click on certain posts, but if there is more than one post in that category it takes you to the top of that category page. If you click an exact post is there anyway for it to take you to that exact place on the category page?

    Thanks Everyone

    1/ The appearance of the category pages is determined by the category.php file. Make same changes there.

    Don’t understand 2nd question.

    Thread Starter KconleyK

    (@kconleyk)

    Thanks Peter, number one worked perfectly.

    Number 2) Let me try to clarify.

    I have categories, where there are more than one post per category Let’s say Category A, has post 1 and post 2 tied to it.

    On my home page, there is a widget that lists most recent posts. If you click on post 2, it takes you to Category A page but you have to scroll past post 1 to get to post 2. Is there a way to make that open page Category A and open on the part of the page that contains post 2, not at the top of page where post 1 starts?

    Hope that clears it up.

    Thanks for all your help.

    If you click on post 2, it takes you to Category A page but you have to scroll past post 1 to get to post 2. Is there a way to make that open page Category A and open on the part of the page that contains post 2, not at the top of page where post 1 starts?

    Why don’t you just link to post 2 instead of to category A?

    Thread Starter KconleyK

    (@kconleyk)

    It seems when I make a Post, and tell it what category to point to, it only adds it to that category page and doesn’t make a page for that post specifically. Does that make sense?

    So when I click on Post 2 for instance, it takes me to the category A page, if I click post 2 again I thought I would go to its own page but it keeps on category A’s page.

    Check your permalinks settings.

    Thread Starter KconleyK

    (@kconleyk)

    It’s like the post don’t have a signature link only their category link

    Thread Starter KconleyK

    (@kconleyk)

    /%category%

    What should it be?

    I’m not really comfortable advising on this because tampering with this can really break a site + I don’t have much experience with permalinks.

    Try going for the default first. If that works, try this
    /%category%/%postname%/

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Making Posts show as summaries not full Post’ is closed to new replies.