WordPress.org

Forums

Custom Post Type UI
[resolved] Custom Post Type Custom Field Code (1 post)

  1. Mark Shirley
    Member
    Posted 2 years ago #

    Hi does anyone know how to add taxonomies and their terms to the code below or do I need to try different code to do this.

    <?php
    $postslist = get_posts('numberposts=4&order=DESC&orderby=date&post_type=movies');
    foreach ($postslist as $post) :
    setup_postdata($post);
    ?>
    <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    <h5>image</h5><a href="<?php the_permalink(); ?>"><img src="<?php the_field('image'); ?>" alt="text-here" /></a>
    <h5>Product Code</h5><?php echo get_post_meta($post->ID, 'product_code', true); ?>
    <?php the_field('copy_1'); ?>
    <?php endforeach; ?>s

    http://wordpress.org/extend/plugins/custom-post-type-ui/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic