WordPress.org

Forums

Simple Fields
Simple Code for image display (1 post)

  1. tsurom
    Member
    Posted 3 years ago #

    Hi Pär
    Thanks for the answer, but i don't understand it. I want in a field group with textboxes a pictures to chose and display on a post. I can realise it with the WYSIWYG Editor Textfield and the code
    $selected_value = simple_fields_get_post_value(get_the_id(), array(1, 4), true);
    if ($selected_value) {
    echo "Anbieter: $selected_value </br>";
    }

    But it would be more elegant if there is only a picture to chose.
    As i mentioned before i have no idea about php, so i just used your examples and that worked fine for me.
    Is there a way to use the examplecode for a picture?
    Greetings from Japan
    Tsurom

    http://wordpress.org/extend/plugins/simple-fields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.