WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Post List
[resolved] [post_thumb] not working (11 posts)

  1. 0armin.
    Member
    Posted 8 months ago #

    i have Sterling Theme . but the tag not working and no image shows.
    1- how to fix this problem?
    2- is it possible to show first attached image instead of featured image?

    http://wordpress.org/plugins/advanced-post-list/

  2. EkoJr
    Member
    Plugin Author

    Posted 8 months ago #

    I'm not sure what's happening. I think it just grabs the first image it can find.

    Although, there's probably going to be more params added to control which image is used.

  3. 0armin.
    Member
    Posted 8 months ago #

    you can test it. publish a post whithout featured image and add an image inside the text. the advanced post list plugin dont show any thing.
    if it shows please notify me.
    could you tell me which params must be changed and where are them?

  4. EkoJr
    Member
    Plugin Author

    Posted 8 months ago #

    There are currently no additional params that can be utilized, but now that I think of it, there has been some recent modifications in development, but it doesn't tackle this issue.

    Commit @7856f77

  5. kalinbooks
    Member
    Plugin Author

    Posted 8 months ago #

    Just the other day I added a parameter to the [post_thumb] shortcode to select sizes: thumbnail, medium, large and full. Since I'm already looking at that code I'll look into the possibility of grabbing the first attached image in the post and adding a second shortcode paramter to turn this feature on and off. If it's low-hanging fruit I'll just go ahead and do it.
    As for your original problem of the [post_thumb] not working with featured image, are you sure the theme supports featured images and you have a featured image properly applied to the post? If that's not the issue, can you give more specific repro steps?

  6. 0armin.
    Member
    Posted 8 months ago #

    i changed the theme to 2012 theme
    my wordpress is in Farsi language.
    this is a sample post i created
    http://armin.hamedanweb.ir/?p=2228
    by this shortcode
    [post_list name="test"]
    and the test is:
    [post_thumb] <a href="[post_permalink]">[post_title] </a>

    yes the most of the posts have correct featured images

  7. EkoJr
    Member
    Plugin Author

    Posted 8 months ago #

    Use the HTML Img element to get the images to display.

    W3Schools - HTML Images

    You can also use inline styling to change the height and width.

    W3Schools - CSS How to -> Inline Styles

  8. 0armin.
    Member
    Posted 8 months ago #

    i'll test it

  9. 0armin.
    Member
    Posted 8 months ago #

    hi the images show but the image file size still large when we resize them by css stylesheet commands.maybe 50 posts by 200kb file size ! 50*200kb=10mb that is not well.if the original size reduces ,it will be a nice property.
    kalinbooks told:

    Just the other day I added a parameter to the [post_thumb] shortcode to select sizes: thumbnail, medium, large and full.

    i want know that is this the thing i want and is it published to this version or later version and how can i use it?

  10. EkoJr
    Member
    Plugin Author

    Posted 8 months ago #

    It was just a method to troubleshoot it for now.

    If you really are that eager. There is a branch in GitHub called image_callback and staged. Should be able to download either of those two from there.

  11. 0armin.
    Member
    Posted 8 months ago #

    thanks! resolved !

Reply

You must log in to post.

About this Plugin

About this Topic

Tags