so basically I want to manage a simple static website. My template is pretty much <?php get_header ?> and <?php get_footer ?> with the loop in between those. My goal is to be able to create pages and posting the HTML code, effectively between the header and footer. But whenever I post I get this of course:
“Test
October 1st, 2012 by admin
testest
Posted in”
I don’t know enough PHP to modify the loop code itself which I tried doing. I also tried making a functions.php that had this:
<?php
add_action('genesis_before', 'child_conditional_actions');
function child_conditional_actions() {
if ( is_page() )
remove_action('genesis_post_title', 'genesis_do_post_title');
}
?>
But it did nothing. Does anyone have any advice?
This is the full loop code I used in case anyone’s curious:
http://pastie.org/4894413
The Loop is what’s outputting your “Test” posts. Anyplace there is a loop, WordPress will insert one or more posts.
You can remove bits of The Loop to suit your preference, so removing
the_time()would stop the time from showing, removingthe_content()will take out the post body/excerpt, etc. It can be moderately complicated to understand at first, but it’s a totally fine thing to do.If you want a truly static page, with the WP header and footer but completely raw HTML in the middle, you could even The Loop out entirely. So pretty much
<?php get_header() ?>, then your static HTML code, and finally<?php get_footer() ?>. Bear in mind that you’ll lose a lot of the usefulness of WordPress by doing that, and it may cause some oddities with the page’s tag, etc.