Title: Hide Post Footer Code When Using Page Break
Last modified: August 19, 2016

---

# Hide Post Footer Code When Using Page Break

 *  [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/hide-post-footer-code-when-using-page-break/)
 * Is it possible to hide the content of a post footer on any page that has a Page
   Break?
 * I would like the post footer content appear only at the bottom of the last page
   of the post.
 * -Scott

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/hide-post-footer-code-when-using-page-break/#post-1537310)
 * `<?php if($page==$numpages) { /*post footer content code here;*/ } ?>`
 * `$page` and `$numpages` are global wordpress variables
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/hide-post-footer-code-when-using-page-break/#post-1537632)
 * @alchymth, thank you, I will give that a try, and report results.
 * -Scott

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide Post Footer Code When Using Page Break’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [cableghost](https://wordpress.org/support/users/cableghost/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/hide-post-footer-code-when-using-page-break/#post-1537632)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
