Probably, you would have seen a snippet of content on the homepage with links to read more. This snippet known as excerpt. Many themes doesn't display full content of a post but if you want to display full content on the homepage instead of excerpt you can get it easily.
Mainly, You can do it by three methods.
Check out the video here http://youtu.be/NIgmIjV1W48
After installation, you will get Content View settings on the left.
Now to display full content you need to create a new "Views", for that click on Add New.
On its page you'll see filter and display settings, move to display settings and just change the content settings to "show full content", then save it.
You will get a View ID like [pt_view id="e6d7141361"] on the top.
Copy and paste this ID in the page which you want to set as homepage. That's it.
Open functions.php of your active theme in any editor.
Copy the below code :
and paste it in the last.
That's it. Here I have used filter function to modify the_excerpt for full content. By doing so you don't need to edit core file.
At the last, I have shown three different methods that anyone can follow to display full content on the homepage. Hopefully it will help you to solve your purpose.
Mainly, You can do it by three methods.
Method 1: By using page:
This is a very simple method. It works, when you want to display a single post. You only need to create a new page and add your post in that page then set it for homepage.Check out the video here http://youtu.be/NIgmIjV1W48
Method 2: By Plugin:
If the above method doesn't work, Content Views plugin will help you and on top of that it is free. It can also display more than one post on the homepage. You can also install this plugin from the WordPress dashboard itself.After installation, you will get Content View settings on the left.
Now to display full content you need to create a new "Views", for that click on Add New.
On its page you'll see filter and display settings, move to display settings and just change the content settings to "show full content", then save it.
You will get a View ID like [pt_view id="e6d7141361"] on the top.
Copy and paste this ID in the page which you want to set as homepage. That's it.
Method 3: By Code:
Sometimes neither you wish to use page nor plugin, in that case coding is only a way to make this possible. But it is not a difficult task. Follow the below steps to make changes.Open functions.php of your active theme in any editor.
Copy the below code :
function full_content()
{
echo $content = get_the_content();
}
add_filter('the_excerpt', 'full_content');
{
echo $content = get_the_content();
}
add_filter('the_excerpt', 'full_content');
and paste it in the last.
That's it. Here I have used filter function to modify the_excerpt for full content. By doing so you don't need to edit core file.
At the last, I have shown three different methods that anyone can follow to display full content on the homepage. Hopefully it will help you to solve your purpose.
0 Comment