page template call sequence?
-
Hello,
I’m relatively new to wordpress, but not new at all to coding.
I’m trying to understand how child themes work (or don’t as the case may be). I have used a child theme to extend a theme I purchased, and for the most part all is well.
What I want to do next is to develop a filter to remove posts from the “latest news” page. I found all the necessary documents about
query_posts
and The Loop.It would appear that the relevant code is in
page.php
, and yet, when I copy thepage.php
from the parent to my child, and add in some markers (e.g. a comment, so that I can prove my child is getting executed), I can tell that the code is still coming from the original parent theme.So my question is this: What incantation do I need to do (I guess in
functions.php
) to register the child version ofpages.php
as being more important than the parent version?
- The topic ‘page template call sequence?’ is closed to new replies.