Title: Adding script to the loop
Last modified: August 18, 2016

---

# Adding script to the loop

 *  [forceagainstsomething](https://wordpress.org/support/users/forceagainstsomething/)
 * (@forceagainstsomething)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/adding-script-to-the-loop/)
 * Howdy all,
    The theme I’m using doesn’t have a page.php script, so I grabbed 
   one from a different theme. Now I’m trying to figure out how to add the page.
   php script to the loop. Just putting it in the same directory as my theme doesn’t
   do anything. I want to include the page.php script in my current theme because
   <!–nextpage–> doesn’t work with the theme I’m using. After reading some post 
   it seems the mission page.php is the problem. Any help would be appreciated.
 * – Sean

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/adding-script-to-the-loop/#post-244459)
 * Make sure the template has either link_pages() or wp_link_pages() in The Loop;
   these generate the `<!--nextpage-->` page links:
 * [http://codex.wordpress.org/Template_Tags/link_pages](http://codex.wordpress.org/Template_Tags/link_pages)
   
   [http://codex.wordpress.org/Template_Tags/wp_link_pages](http://codex.wordpress.org/Template_Tags/wp_link_pages)
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/adding-script-to-the-loop/#post-244460)
 * page.php is a template for when you Write Page through your admin screens. It’s
   not going to help with the problem you’re having I believe. My understanding 
   is that its use is as the template for wordpress Pages….
 * [Hmmm. I might have misunderstood your question….]

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

The topic ‘Adding script to the loop’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [20 years, 8 months ago](https://wordpress.org/support/topic/adding-script-to-the-loop/#post-244460)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
