Pods - Custom Content Types and Fields
[resolved] Posting images on WP 3.6 (3 posts)

  1. jeanhules
    Posted 2 years ago #

    I am new to WP so forgive me, but I have been trying every suggested method out there and nothing seems to work.

    I have a Pod named "images"

    There is then a field named "image"

    then inside "image" I have several images I plan to place around my website, (logo, icon-1, icon-2, icon-3, etc)

    What is the best way to simply place each image in their respected place....something like:

    <?php echo ' <code for logo image here> ' ?>
    <?php echo ' <code for icon-1 image here> ' ?>
    <?php echo ' <code for icon-2 image here> ' ?>

    And if you could tell me what the proper content type.


  2. senyoraangelica
    Posted 2 years ago #

    Hello! Probably, the most simplest way is to use pods shortcodes.

  3. Scott Kingsley Clark
    Plugin Author

    Posted 2 years ago #

    Why not use Media (attachments) instead? Anyways, for image output (assuming you used a file field for the image field in the images pod) you would use this:

    echo pods_field_display( 'images', $id, 'image' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic