0
votes

I'm new to wordpress, but I've done PHP for a little while.

Is the loop.php EXCLUSIVELY just for displaying blog posts...or does it have other useful functionality for pages as well?

I'm using a theme, and most of the pages have ...

<?php get_template_part('loop'); ?>

... in them. This is not a blog site and I don't need blog posts displayed. I do want other web content where this is displaying on the page.

Is it proper WP coding style to use the loop for content, even if its not a blog site? Or can I just remove the line and replace it with page code?

Thanks!

1
PS...I created a page test.php contaaining only... <?php> echo "test"; <?> ...and added it to the home.php using get_template_part('test') and it works. So I'm not sure what the issue is with the other pages....? Instead of hacking pages out manually...is there a link describing how I can create a template using the wp-admin tools? Thanks! - RightmireM

1 Answers

2
votes

The page code isn't what that code replaces... More on get_template_part http://codex.wordpress.org/Function_Reference/get_template_part