Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

hello guys im making child theme of melville and i wanna make a custom page with a static menu (as in not made with wp ) of my own and under it i wanna display the content and i use this get_template_part('loop' ,'home-page')where the home-page its name of my custom page and i do have the loop file in my child theme please if anyone knows whats my msitake i would be thankfull

my issue is the content doesnt show up

Edit : here's my code im using nothing fancy

`

 get_header(); ?>
        some xhtml here 

    <?php get_template_part('loop' ,'home-page') ?>
    <?php //comments_template( '', true ); ?>

 <?php get_footer(); ?>

`

share|improve this question
    
Please post code examples of what is and isn't working. It is really hard to troubleshoot it's not working without more info. –  BandonRandon Dec 23 '11 at 21:53
    
i added the code i use in the template and thanks –  kosaidpo Dec 23 '11 at 22:18

1 Answer 1

up vote 0 down vote accepted

According to the codex your file needs to be called childtheme/loop-home-page.php if you did just then <?php get_template_part('loop' ,'home-page') ?>you would call it loop.php not sure if that helps at all.

Another thing is make sure your page is using your custom template file as this could also be your problem. What is the name of your custom page file? if it's home.php this may be the problem.

share|improve this answer
    
thanks i got it working ; ] –  kosaidpo Dec 24 '11 at 12:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.