How Do I Add Read More Read Less in WordPress?

Adding Read More and Read Less buttons in WordPress is a quick and easy way to increase reader engagement. To add these buttons to your WordPress site, follow these simple steps:

1. First, create a new file in your WordPress theme folder and name it “readmore.

php”.

2. Within this file, add the following code:

3. Within the “readmore_init” function, add the following code:

$readmore = get_option(‘readmore’);

if (empty($readmore))

{

$readmore = ‘Read More’;

}

4. Finally, add the following lines of code to the end of the file:

echo $readmore;

Now, you can add the readmore buttons to any WordPress post or page by simply inserting the following code:

“>Read Less.