Can i put ‘page’ at the bottom of each page?

I don’t quite grasp why you’d want to include a page “on the bottom of each page”, rather than putting the “logo+links+images” in the footer and creating a menu below that.

That being said, in order to achieve what you want, create the page and include the following in your theme’s footer.php (the below code example assumes that that page’s ID is 83 and/or its slug “bottom-page”, change it accordingly):

// query for the page using either (not both!) one of the two following lines
$bottom_page_query = new WP_Query( 'page_id=83' );
$bottom_page_query = new WP_Query( 'pagename=bottom-page' );

// loop through the query (even though it's just one page)
while ( $bottom_page_query->have_posts() ) : $bottom_page_query->the_post();
    the_content();
endwhile;

// reset post data (important, don't leave out!)
wp_reset_postdata();

Leave a Comment