• Hello, I am building a site with WP and it’s been wonderful. I have been studying PHP and already was able to make some bespoke modifications. However, despite how much I keep trying, I can’t make the modifications to turn on the “read more” function.
    I read and reread and tried out what is showed in

    http://codex.wordpress.org/Customizing_the_Read_More

    You have to pardon my lack of knowledge on PHP, but could someone make the above explanation a little easier? I have searched the net and other forums, and it seems that the “read more” function is quite problematic to a lot of people. I humbly suggest that a simpler step-by-step guide would help a lot.

    Any help is welcome.
    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • When you post in editor click your mouse where you the link and then in keyboard press Ctrl+Alt+T that will a line with more at end and update or publish.

    now if you go and post page you have the article and a continue reading link.

    Thread Starter redmounts

    (@redmounts)

    Thanks govpate, I have tried that: in the html and visual text editors the tag does appear. But when I visualize the published post, nothing happens. Actually, I have tried everything I was suggested to, nothing worked. That’s why I am trying to modify the php. I have tried to follow what the above link teaches, but I I do admit I need more knowledge: it does not tell a beginner where’s the files that should be modified. I guessed it is php.index in wp-include folder, but I am not sure.

    If you could help me, you could help a lot of people too: I have posted this question in the Brazilian Portuguese forum and there are some guys there asking the same thing. If an easier guide is posted here, I will translate there.

    Thanks agains.

    Are you doing this on a page or post as it does not work pages

    If you are trying to ‘turn on’ the ‘read more’ in a template, you might need to add this line before your query:

    global $more; $more = 0;

    Thread Starter redmounts

    (@redmounts)

    @ govpatel: on posts, I understand it doesn’t work on pages.

    @ vtxyzzy: forgive my dumbness, but could you tell me where’s this query thing?

    Thanks.

    In posts I do not have any problem with posting and have continue reading.

    there must some thing that is odd in your theme try switching to twenty ten theme see if it works on default theme if it does then it is there is theme problem.

    That line should go just before the line that has something like this:

    <?php global $more; $more = 0; ?>
    <?php if (have_posts()) . . .

    But, you need to be careful of the <?php and ?> tags. You say you have made modifications to your theme, so you probably know about these.

    Thread Starter redmounts

    (@redmounts)

    You guys, thank you for your gentle help. I will have a friend taking an expert look into my files. If he finds the answer, I will post here.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘how-to "read more"’ is closed to new replies.