Forums

Posts page not giving links to posts (2 posts)

  1. Blacklite
    Member
    Posted 1 year ago #

    Here are some pretty pictures:

    http://ft.dtupload.com/ae/pokit29eb72af70b45ea8994b6d0256b1b97f.png

    http://ft.dtupload.com/j3/pokit4a90df0803c61aab5c319444f910371b.png

    The first one is a picture of my settings, the second is a picture of what my "News" page looks like.

    Basically, I have a Home page and a News page (quite a common setup). Problem is, my news page isn't giving links to the posts, or cutting them off after a certain number of characters. I want my news page to be kinda like this:

    Post Title
    Blah blah blah blah blah blah blah blah blah blah blah ... [read more]
    5 comments

    It's always done it this way, except for this particular site I'm developing, and I don't know why. If I'm being unclear, let me know.

    Can anyone help? Thanks in advance.

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    what is the code of the 'news' page template?

    you could paste the code into a http://wordpress.pastebin.com/ and post the link to it here.

    a linked title code is similar to something like this:

    <h2><a href="<?php the_permalink() ?>" ><?php the_title();  ?></a></h2>

    to show a short version of the content, the code should have the_excerpt(); instead of the_content('read more');

    http://codex.wordpress.org/Function_Reference/the_excerpt
    http://codex.wordpress.org/Function_Reference/the_content

    to set a read more link on the excerpt, see:
    http://codex.wordpress.org/Function_Reference/the_excerpt#Make_the_.22read_more.22_link_to_the_post

Topic Closed

This topic has been closed to new replies.

About this Topic