Title: Repeat custom fields on same page
Last modified: August 20, 2016

---

# Repeat custom fields on same page

 *  [jameshunter77](https://wordpress.org/support/users/jameshunter77/)
 * (@jameshunter77)
 * [15 years ago](https://wordpress.org/support/topic/repeat-custom-fields-on-same-page/)
 * hi guys,
    i am currently designing a theme for a restaurant, and have decided
   to use custom fields on their (food)menu page so as they are able to edit each
   item as they see fit (i’m completely new to this so if anyone thinks there is
   a better way to achieve this please let me know). I have 4 field names- category,
   item, description and price. Their values are than entered accordingly. These
   have all been styled and work fine, however when i repeat a name for the next
   item it doesn’t appear-it only shows each one once. Any help would be very much
   appreciated!! ps heres my current code
 *     ```
       <?php get_header(); the_post(); ?>
   
       <div id="main-content">
   
       		<div class="menu-cat">
       			<?php if ( get_post_meta($post->ID, 'menu-cat') ) : ?>
       			<?php echo get_post_meta($post->ID, 'menu-cat', true); ?>
       			<?php endif; ?>
       			 </div> 
   
       				<div class="menu-item">
       				 	<?php if ( get_post_meta($post->ID, 'menu-item') ) : ?>
       				<?php echo get_post_meta($post->ID, 'menu-item', true); ?> </div>
       			<?php endif; ?>
   
       				<div class="menu-description">
       				 	<?php if ( get_post_meta($post->ID, 'menu-description') ) : ?>					
   
       		 <?php echo get_post_meta($post->ID, 'menu-description', true); ?>
       					<?php endif; ?>
       										 </div>
   
       				<div class="menu-price">								 <?php echo get_post_meta($post->ID, 'menu-price', true); ?>
   
       			</div>
       ```
   

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

 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [15 years ago](https://wordpress.org/support/topic/repeat-custom-fields-on-same-page/#post-2101643)
 * why don’t you use the built in categories, use title for the item, and the content
   box for the description?
 * so you’ll only need 1 custom field for price. unless you’ve done lots of customization
   to the admin interface, this will probably be easier to understand.
 *  Thread Starter [jameshunter77](https://wordpress.org/support/users/jameshunter77/)
 * (@jameshunter77)
 * [15 years ago](https://wordpress.org/support/topic/repeat-custom-fields-on-same-page/#post-2101673)
 * [@fonglh](https://wordpress.org/support/users/fonglh/)
    hey thanks for gettin
   back, i’ve just been given a link to a plugin and tutorial which suits me perfectly.
 * if your interested
 * [http://wordpress.org/extend/plugins/fresh-page/installation/](http://wordpress.org/extend/plugins/fresh-page/installation/)
 * and the tutorial
 * [http://sara-cannon.com/blog/2010/03/27/using-flutter-for-a-restaurant-menu-in-wordpress/](http://sara-cannon.com/blog/2010/03/27/using-flutter-for-a-restaurant-menu-in-wordpress/)
 * thanks again

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

The topic ‘Repeat custom fields on same page’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [repeat](https://wordpress.org/support/topic-tag/repeat/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [jameshunter77](https://wordpress.org/support/users/jameshunter77/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/repeat-custom-fields-on-same-page/#post-2101673)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
