You must be logged in to post
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Customizing the "MORE" post function and location without plugin…help!

UserPost

3:29 am
December 28, 2009


joeflizo

Member

posts 11

1

hi everyone…

I have 2 questions about the "more" funtion on the post…

1) When i put the "more" function on my post, the on click link structure that related to the "more" phrase (read the rest of this entry) is like this:

www [dot ] domain [dot] com/post_title#more-21 (or other number)

my question is how can i change the link structure to become like this:

www [dot] domain [dot] com/post_title  (without #more-21 or any number)

I want to make the "more" link structure same to the link structure of the post title…

2) By the theme default, the location of the "more" (Read the rest of this entry) phrase is like this:

Paragraph……………………………………………………..

…………………………………………………………………..

…………………………………Last sentenced before more phrase

<space>

Read the rest of this entry

I want to change the location and the phrase of the "more" function to be like this:

Paragraph………………………………………………………

…………………………………………………………………….

………………last sentenced before more phrase [.....] Read more

How can i do that? I mean where i want to adjust the code?

I try to escape using the plugin for this kind of simple thing….so i hope someone can help me ok…

Thanks!

6:57 am
February 5, 2010


Ryan

Admin

posts 1252

2

The more tag text is controlled by the wp_content tag. If you look in the index.php file, you'll see this:

<?php the_content('Read the rest of this entry'); ?>

You can see what text you need to change. You will also need to change in the archive.php fiile.