• Hi there.

    Just wondering if someone can help me out, trying to understand how I can display the custom field “location” in a post, but i want all the “location” from every individual article made on wordpress, not just one.

    example:
    <?php echo get_post_meta($post->ID, "location", true); ?>

    returns
    "<p style='font-family:Arial; font-size:12px;'><strong>We only allow private advertisers to advertise in our Stuff For Sale category</strong><br />" + address + "</p>";

    but I would like ALL articles locations to show like, rather then just the one post ID.

    "<p style='font-family:Arial; font-size:12px;'><strong>We only allow private advertisers to advertise in our Stuff For Sale category</strong><br />" + address + "</p><p style='font-family:Arial; font-size:12px;'><strong>We only allow private advertisers to advertise in our Stuff For Sale category</strong><br />" + address + "</p><p style='font-family:Arial; font-size:12px;'><strong>We only allow private advertisers to advertise in our Stuff For Sale category</strong><br />" + address + "</p><p style='font-family:Arial; font-size:12px;'><strong>We only allow private advertisers to advertise in our Stuff For Sale category</strong><br />" + address + "</p><p style='font-family:Arial; font-size:12px;'><strong>We only allow private advertisers to advertise in our Stuff For Sale category</strong><br />" + address + "</p>";

    Almost like a list of sorts.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display all the custom field info at once’ is closed to new replies.