3.1 upgrade and custom fields
-
Can anyone help?
Just upgraded to 3.1.
I have a page in my theme which acts as a gallery index page.
Child pages are listed using thumbnails.
These thumbs are stored in custom fields.After upgrading – no custom fields come through but the links to the child pages are fine.
I have downgraded to 3.05 so I’m OK but can anyone help?The code on the page is:
<!-- GALLERY LAYOUT -->
<div class="row">
<div id="sub-pages" class="column grid_12_wide">
<?php
$child_pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = ".$post->ID." AND post_type = 'page' ORDER BY menu_order DESC", 'OBJECT'); ?>-
<?php if ( $child_pages ) : foreach ( $child_pages as $pageChild ) : setup_postdata( $pageChild ); ?>
-
ID); ?>" rel="bookmark" title="<?php echo $pageChild->post_title; ?>">
<img src="<?php echo get_option('home'); ?>/wp-content/gallery/<?php $values = get_post_custom_values("gallery thumb"); echo $values[0]; ?>.jpg" alt="<?php echo $pageChild->post_title; ?>" width="300" height="175" />
<?php endforeach; endif;
?><?php wp_reset_query(); ?>
</div>
</div>
-
ID); ?>" rel="bookmark" title="<?php echo $pageChild->post_title; ?>">
- The topic ‘3.1 upgrade and custom fields’ is closed to new replies.