Page of posts
-
I am trying to create a page of posts and am following the instructions on this link (given to me by alchymyth-thanks for that)
https://codex.www.ads-software.com/Page_Templates#A_Page_of_PostsHowever I’m stuck in that the instructions say “The following custom page template file displays the content of the Page, followed by the posts from two specific categories (specified by their category slugs). It is designed to work within a child Theme of the Twenty Thirteen theme. If you are using a different theme, you need to replicate the HTML structure of your own theme within this template.
Save this to pageofposts.php and then assign the Page of Posts Template to your new Page:”
Most of the code looks relevant apart from this line:
<?php twentythirteen_paging_nav(); ?>I am using childishly simple child theme but I can’t find a php file with a similar name. So I left the line as it was but changed twentythirteen to childishly_simple_child and added one of my categories in place of the ones shown.
I uploaded the php file to the server and it shows in the list of templates.
I created a page called Page of Posts and chose the page of posts template and reviewed it but there was only the page header and nothing else.
I ran the whole php file through the W3C checker and got this result but no explanation as to what it meant
Parse Error Lexical error at line 1, column 2. Encountered: “?” (63), after : “<“
Can someone help?
Thanks
Tony
PS I realise I’ve posted a lot of questions on this theme recently but I have really got to grips with WordPress and the theme basics and the site is developing nicely. It’s only when I want to do something out of the ordinary when I hit a brick wall!
- The topic ‘Page of posts’ is closed to new replies.