How to Add Custom WordPress Read More Functions

Add Tool

How to Add Custom WordPress Read More Functions


WordPress custom functions are very useful for illustration a web site. It is not only helpful but also save time. Suppose you have a website and you design it at various styles such as 2 column pages, 3 column page, single page, portfolio page, author page etc. Now you need to change some text or anything of you site’s all page. What will you do? You will change the text from all pages where you added it, so you need many time to change it. In this case WordPress custom function will help you to do this at less time to change it.

In this web development tutorial I will share How to Add Custom WordPress Read More Functions

Now open your functions.php file and add the below WordPress functions in it.

function read_more(){
 echo 'Read More';
}

Here I have write a function as read_more() and place some information in the function to display in the website.

How to display WordPress custom functions in template?

To display the above function in template you need only add <?php read_more();?> to display read more text in your template. Now add the below php codes any page in your template to display Read more with link.

<a href="<?php the_permalink();?>"><?php read_more(); ?></a>

Want to change Read more text to continue reading... no problem. You don’t need to change these at all pages. Simply open you functions.php file and change read more text to your custom text like continue reading…

I only write a simple WordPress function in functions.php file. If this functions is helpful don't forget to share with your friends and share you idea through leave a comment. Thank you.


Tags: wordpress read more, wordpress read more tag, read more tag wordpress, functions.php, read more wordpress, wordpress tutorial, wordpress.com, wordpress
Payza

About Masum Billah

How to Add Custom WordPress Read More Functions 1stWebSuite website seo tool is a free website ranking tool site provides a lot of on page and off page seo useful tools for you. On this site, we have a large number of website ranking tools


SIGN UP TO GET UPDATE TO YOUR INBOX




Discuss about: How to Add Custom WordPress Read More Functions


adf.ly