Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tareq Hasan

    (@tareq1988)

    The image is inserted as a linked image to that post. Because your theme shows the featured image or any linked image for that post, you see it in the main page. And as your theme doesn’t show it in single post, you don’t see it. It’s upto the theme.

    You can use the following code in your single.php to show the images.

    <?php
    $args = array(
        'post_type' => 'attachment',
        'numberposts' => null,
        'post_status' => null,
        'post_parent' => $post->ID
    );
    $attachments = get_posts($args);
    if ($attachments) {
        foreach ($attachments as $attachment) {
            echo wp_get_attachment_image($attachment->ID, 'medium');
        }
    }
    ?>

    I have a question along these lines. I am wanting to have a feature image set for each category. I have a plugin for this function and it works just fine when I post from the backend, but for some reason it just uses the theme default image as the feature image when I post from your plugin. I then have to go into the backend and apply mapping in the category image plugin for the correct image to show up on the home page. Is there any way to have the category image update when I post from your plugin? bemyblessing.com

    Thank you

    Plugin Author Tareq Hasan

    (@tareq1988)

    I have no idea how the category plugin works. So can’t give you a clue

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: WP User Frontend] Image in Post’ is closed to new replies.