WordPress.org

Forums

[resolved] Meta data, custom fields help (1 post)

  1. secretja
    Member
    Posted 4 years ago #

    Hello,

    I need quick help.

    I use this code,

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php echo get_post_meta($post->ID, 'banner', true); ?>
    <?php echo get_post_meta($post->ID, 'pays_per_ad', true); ?>
    <?php endwhile; endif; ?>

    [please mark your code using the code button]

    How can I get the same fields in another post?

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic