WordPress.org

Forums

Get Recet post from blog (3 posts)

  1. HasanulBanna
    Member
    Posted 3 years ago #

    Hi friends,
    I have a project that i'm working on multi site. The main sill will pull diff rent data of user sites.

    There is a section called Recent Post.
    This will list latest 10 Post from all users blog.
    I am using site wide tag to generate copy of user blog data to a main site and i'm querying it from main site. But the problem is that the user blog have a thumbnail image that is defined as add_image_size('latest_thumb_image',186,186,true);

    I want to display this to main site site wide tag is not automatically posting featured image to its main site copy its only add title,content,and option to add custom field.
    We cant add users to enter custom field values for small thumbnail image that will again lead them to problmes, The users are no tech users. they only upllaod as thumbnail image im generation correct size thumbnail using add_image_size('latest_thumb_image',186,186,true); to add to site.

    Please help me how to display thumbanil image of sub site to main site.
    Waiting for your replay :)
    Thanks and Regards
    Hasanul Banna

  2. SWT handles the featured image thumbnail with a filter. If you look at the custom fields on the SWT posts you should see a field called thumbnail_html. That's where SWT get's the post thumbnail html from.

    Which is to say, if the THEME is using post thumnails (featured images) correctly, and your users know how to set a featured image, this should be possible.

  3. HasanulBanna
    Member
    Posted 3 years ago #

    Dear Ipstenu,
    Thank You very much for your suggestion.
    Yes It pull thumbnail as

    FIELD:thumbnail_html

    DATA:
    <img width="150" height="150" src="http://192.168.1.4/tela/banna/files/2012/05/thumb1-150x150.png" class="attachment-thumbnail" alt="thumb1" title="thumb1" />

    But it pull a another thumbnail data i mean a 150*150 image. I want eaither the full size image link or my custom size as per add_image_size('latest_thumb_image',186,186,true);
    Is there any way,

    -Thank You very much
    Banna

Topic Closed

This topic has been closed to new replies.

About this Topic