Getting the content on home page
I wanted to modify the content of the home page by adding few messages to it using my custom plugin. I tried using the the filter
add_filter( 'the_content', 'modify_the_content' );and then checking if the current page is the home page or not using
is_home()before adding the message. However, I was not able to change the content.
The theme is a custom theme that does not display the recent posts but uses the Theme Options page to obtain the content from the user and display it. Interestingly, if i display my posts in the home page, the message will be appended to each of those posts at the end.
I could modify the theme files itself, but I needed to achieve this using plugin. Any lead or suggestion is welcome.
- The topic ‘Getting the content on home page’ is closed to new replies.