WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jeanhules
    Member
    Posted 7 months 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.

    http://wordpress.org/plugins/pods/

  2. senyoraangelica
    Member
    Posted 7 months ago #

    Hello! Probably, the most simplest way is to use pods shortcodes.
    http://pods.io/docs/learn/shortcodes/pods/

  3. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 7 months 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' );

Reply

You must log in to post.

About this Plugin

About this Topic

Tags