WORDPRESS / How to create a page that displays custom field values

we are trying to display a list of custom field values for a specific meta key, in a page. 

  • install the plugin http://wordpress.org/extend/plugins/wp-page-widget/
  • code a new widget area to  display a specific widget in a content area of a page : 
    •    register_sidebar(array(
                      'name'=> __( 'main content', 'photography' ),
                      'id' => 'contentwidget',
                      'before_widget' => '<li id="%1$s" class="widget %2$s">',
                      'after_widget' => '</li>',
                      'before_title' => '<h2 class="widgettitle">',
                      'after_title' => '</h2>',
    • add the sidebar where you want on your page.php template : dynamic_sidebar( 'main content' )
  • setup the wp page widget plugin to activate pages and the main content area you've just created
  • download and install the widget  http://wordpress.org/extend/plugins/get-custom-field-values/
  • create a new page and use the widget interface in your page to add the list of custom field values for your meta key
  • Demonstration here, what I need now is to link custom fields values to posts : http://erwan-foto.com/photos-bretagne
  • Note : I also  tried the http://wordpress.org/extend/plugins/custom-field-list-widget/ but for some reason it does not work with wp page widget
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *