Title: Extended Page
Last modified: August 21, 2016

---

# Extended Page

 *  Resolved [stiil](https://wordpress.org/support/users/stiil/)
 * (@stiil)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/extended-page/)
 * Hey,
 * how do I get the data for my custom field, when I’m inside the loop with wp_query?
 * my code so far:
 *     ```
       query_posts($args);
       	while(have_posts() ) : the_post();
       		$pods = pods('page');
   
       ?>
       	<section id="<?php echo $post->post_name;?>" class="container">
       		<div class="contentWrapper">
       			<div class="content">
       				<h1><?php the_title(); ?></h1>
       				<h2><?php echo $pods->display('link'); ?></h2>
       			</div>
       		</div>
       	</section>
   
       	<?php endwhile; ?>
       ```
   
 * [https://wordpress.org/plugins/pods/](https://wordpress.org/plugins/pods/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * (@sc0ttkclark)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/extended-page/#post-4612325)
 * `$pods = pods( 'page', get_the_ID() );`
 * Or you can just use the standard `get_post_meta( get_the_ID(), 'link', true )`

Viewing 1 replies (of 1 total)

The topic ‘Extended Page’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/extended-page/#post-4612325)
 * Status: resolved