Getting read more of child pages to show on static homepage
-
I would be very grateful if someone could help me out with the following question:
What code would I use to get the ‘read more’ portion of a child page (not post) to display on my home page?
I have a page called ‘About’ and two child pages under the ‘About’. I want the title and the first few lines of each of the child pages to display in a small area on my home page with a ‘read more’ link back to their full pages. I have used the read more insert within the page to split my copy and have included the:
<?php global $more; $more = 0; ?> but have only been able to get the read more excerpt to show with posts – not pages, and not child pages.
I have read the read more pages within codex but as I am still learning php and wordpress I don’t find them helpful at all – just confusing. I never understand how to incorporate the suggested code and what to use before and after as they don’t give full real life examples.
I am working locally so am unable to provide a link to the site – not that there is anything to see as, in spite of spending over 8 hours trying to solve this problem, I have not even been able to come up with a ‘sort of works’ solution.
I would really appreciate someone helping me with this. I am not having much luck getting any responses when posting on this forum which is becoming quite frustrating as that was one of the top reasons for choosing to use wordpress. I always try the best I can to find the answer before coming here (often several days or more) so I don’t waste anyone’s time. Please, please, please can someone help me?
- The topic ‘Getting read more of child pages to show on static homepage’ is closed to new replies.