How to show custom fields value of two posts on one page, like comparison? (3 posts)

  1. Nikhil Phirke
    Posted 4 years ago #

    I 've created products specification table for gadgets at http://thedripple.com/products. I've created a fixed table WP- Table reloaded with first column fixed and the value of second column are displayed by custom fields on post. Now, I wan't to enable comparison of post (only custom fields).

    For example - Users come to the site an select which two posts he wan't to compare and after comparison get the id of post and show custom fields according to selected posts in column 2 and 3 as column 1 is fixed for all posts. Check the site for more info on my project.

    In short i just wan't code to pull selected post by ID and then display custom fields of selected posts...

  2. David Choi
    Posted 4 years ago #

    Don't know how you are comparing them, but I was able to use this plugin


    to display different custom fields, depending on the page, post or category.

  3. Chandan Kumar
    Posted 4 years ago #

    You can display post meta by post id and can do it as follows:

    echo get_post_meta($post->ID,'meta_field_name',true);

Topic Closed

This topic has been closed to new replies.

About this Topic