Why doesn't my "the_content('Read more...');" tag work? (7 posts)

  1. vvugia
    Posted 10 years ago #

    I got it to work in categories/archives but not on a regular WordPress page that includes the following code. Could you please advise?

    <?php query_posts('cat=21&showposts=2'); ?>
    <h2>David's Thoughts</h2>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h3 class="storytitle">" rel="bookmark"><?php the_title(); ?></h3>
    <div class="meta">
    <?php _e("Filed under:"); ?> <?php the_category(',') ?> —
    <?php the_author() ?> @ <?php the_time() ?>
    <?php edit_post_link(__('Edit This')); ?>
    <div class="storycontent">
    <?php the_content('Read on...'); ?>
    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    <?php endwhile; endif; ?>

  2. pati
    Posted 10 years ago #

    same problem here.

    when you use the_excerpt instead of the content you will see [...] after an excerpt of your post - but it doesn't work, too. It (--> [...]) isn't a link to click on.

  3. grungepuppy
    Posted 10 years ago #

    ditto... does no one have a solution to this, or know why it's doing it?

  4. moshu
    Posted 10 years ago #

    @vvugia, - define a "regular WP page"

    @pati & grungepuppy - the [...] is not supposed to be a link. The title is a link to the single view of the post.
    alternatively, you can use the excerpt_reloaded plugin:

  5. grungepuppy
    Posted 10 years ago #

    pardon, i meant i had an issue similar to vvugia's, with the stuff under "more" not getting cut...

    for me, i have a "blog" page, using the the method mentioned here ( http://codex.wordpress.org/Pages#Making_your_blog_appear_in_a_non-root_folder )... so i set up a page ( http://www.qrow.com/blog ) to include the the blog code found in index.php in the root folder. it shows with blog alright, but seems to want to ignore the fact that there's a <!-- more --> in there. it seems to work in the archive pages (as in, the cut will appear when listed in monthly archives) just not the main page.

    any suggestions?

  6. moshu
    Posted 10 years ago #

    Well, you should complain to the person who wrote that article in the Codex :)
    Quote from there:
    Log into WordPress and create a page named "Blog" with template "blog". - emphasis mine!

    The more thingy does NOT work on Pages. That's how it is.

  7. grungepuppy
    Posted 10 years ago #

    what a bummer!will have to find a work around then...

Topic Closed

This topic has been closed to new replies.

About this Topic