• <p><?php the_content(”); ?>… read more ></p>

    Can anyone help me fix that code. I would like to trim the content to certain amount of words. Then, whenever someone click the readmore, it will brings me to another page which shows the whole content.

    any advise ?

    it’s for this page

    I am using post to post the content, I do not know what I would name the page that shows the whole content.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter davy_yg

    (@davy_yg)

    page-news.php

    <p><?php the_content(“Read more…”); ?></p>

    POST CONTENT

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce porta diam in quam consectetur elementum. Vestibulum iaculis pellentesque mauris, non sodales erat egestas nec. Proin sed elit sed ligula ullamcorper adipiscing. Quisque pellentesque sapien odio. Phasellus nec elit ligula. Ut tempus urna ut lectus ullamcorper imperdiet.

    <!–more–>

    Quisque vitae massa sem, sed cursus sapien. Ut mi lorem venenatis nisl lacinia id. Suspendisse eget magna turpis. Aenean rhoncus, mauris nec ullamcorper bibendum, ligula diam blandit diam, vel rhoncus purus sapien non mi. Aenean a convallis arcu. Phasellus non est mollis eros lobortis vestibulum consequat ac arcu. Fusce justo urna, ultrices ut varius a, eleifend ac justo.

    It still not working. It prints out:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce porta diam in quam consectetur elementum. Vestibulum iaculis pellentesque mauris, non sodales erat egestas nec. Proin sed elit sed ligula ullamcorper adipiscing. Quisque pellentesque sapien odio. Phasellus nec elit ligula. Ut tempus urna ut lectus ullamcorper imperdiet.

    Quisque vitae massa sem, sed cursus sapien. Ut mi lorem venenatis nisl lacinia id. Suspendisse eget magna turpis. Aenean rhoncus, mauris nec ullamcorper bibendum, ligula diam blandit diam, vel rhoncus purus sapien non mi. Aenean a convallis arcu. Phasellus non est mollis eros lobortis vestibulum consequat ac arcu. Fusce justo urna, ultrices ut varius a, eleifend ac justo. Sed ornare rhoncus turpis sed accumsan. Curabitur dignissim, justo id facilisis elementum, mauris orci convallis augue, non

    Are you using the rich-text editor, or the HTML editor?

    If you’re using the HTML editor, you would add the <!--more--> tag manually.

    If you’re using the rich-text editor, you would use the “More” button on the editor toolbar.

    Thread Starter davy_yg

    (@davy_yg)

    yes, I am using wordpress rich text editor.

    I have press th more button. and this symbol appear: <!–more–>

    Yet, still I do not see the more in the wordpress content. The same output like my previous post.

    Thread Starter davy_yg

    (@davy_yg)

    Strange, it also does not work with other themes. I have tried switching themes to twentyten add <p><?php the_content(“Read more…”); ?></p>

    and press more in between content. <!–more–>

    Still the output remains the same, without the “Read More”.

    Can ANYONE help me ?

    Thanks.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘content’ is closed to new replies.