Using the <more> tag for wordpress

5 replies
I am using the Flexibility WP Theme 2.

I like having post excerpts and a more tag to click on.

I tried doing this:

<?php the_content(__('Read more'));?>

If you change that to

<?php the_excerpt(__('Read more'));?>

The posts then have an excerpt but there is no "more" button to click on.

I have a SEOblog theme that does it automatically but I like the Flexibility Theme 2.

Can't find a plugin for that. There are plugins but just puts the more at the bottom of the whole article. What's the point.

If anyone can help, it would be great.

Thanks,

Fern
#&ltmore&gt #<more> #tag #wordpress
  • Profile picture of the author pjCheviot
    Banned
    Fern

    If I am reading this correctly, I think you may be going too deeply into this . .

    To show an excerpt simply add <!--more--> into the post where you want the "cut-off" to be.

    The "Read more" text can be changed to say something else eg "More on this post here . . " etc but keep the rest of the original php code intact.

    HTH
    {{ DiscussionBoard.errors[645579].message }}
    • Profile picture of the author wealth2moms
      Thanks for the response.

      I do know how to add the more tag into the post. If I autopost a lot of articles, then I have to go into each one individually.

      There is a way to add adsense right into the code. I have another wp theme that does divides the post automatically. It is in the code.

      I tried to put some of the code from the other theme into the flexibility Theme and it didn't work.

      Does anyone know how to put the more tag within the code so it works automatically?

      Thanks

      Fern
      {{ DiscussionBoard.errors[645583].message }}
  • Profile picture of the author pjCheviot
    Banned
    Sorry Fern - I am with you now!

    What about the Settings -> Reading -> Use SUMMARY for each article/feed

    That should do it.

    Regards
    {{ DiscussionBoard.errors[645589].message }}
  • Profile picture of the author danemorgan
    The __('Read more') is not compatible with the_excerpt(), only with the_content().

    to achieve the same effect, (but it will be below the text, not inline) use this

    <?php the_excerpt(); ?>
    <a href="<?php the_permalink(); ?>">Read More</a>
    Signature
    Did you ever notice that “author” is the root of the word “authority“?
    {{ DiscussionBoard.errors[645688].message }}
    • Profile picture of the author wealth2moms
      Hi Dane,

      Thanks it worked. the only thing that was happening was the excerpt and the whole article was on the same page, so I went in and removed the
      <?php the_content(__('Read more'));?>

      and then worked great. I guess when I need wp help I should go into the rich-jerks membership and get an answer. You are great

      Thanks,

      Fern
      {{ DiscussionBoard.errors[652595].message }}

Trending Topics