WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
[resolved] Featured Image (8 posts)

  1. lolislol
    Member
    Posted 1 year ago #

    Hello
    Is there a way i can get the url for the featured image?
    Thank you

    http://wordpress.org/extend/plugins/tpg-get-posts/

  2. cswaim
    Member
    Plugin Author

    Posted 1 year ago #

    I am not sure what you are asking about, can you provide some context - like how are you using the plugin, shortcode or link to a page.

  3. lolislol
    Member
    Posted 1 year ago #

    ok
    here have a look
    this is the website

    as you can see the test is the one using tpg posts
    i want the image to be displayed resized...

    Thank you

  4. cswaim
    Member
    Plugin Author

    Posted 1 year ago #

    The format of the image over the title & text is not available at this time. The two formats available at this time are the standard post with the image below the by-line and in the premium version a magazine layout where title,and content are next to the image.

    The size of the image is controlled with the thumbnail_size= parameter. See the doc for the various options.

    I am updating the plugin and may offer the featured image format but I will need to look at the impact to the other changes.

  5. lolislol
    Member
    Posted 1 year ago #

    ok got it.. thank you but two question
    how can i make the thumbnail one exact size...
    two how can i get only the 2nd latest post or the third latest post

  6. cswaim
    Member
    Plugin Author

    Posted 1 year ago #

    your theme may set different sizes for thumbnails and you should be able to use any of those sizes specified by the theme. My examples and doc only reference the standard, default wp. You can find the sizes supported by your them in functions.php add_image_size function.

    To pull the 2nd/3rd post, use the offset parameter see the codex.wordpress.com for WP_query it discusses how the offset works, but in general something like numberposts=1 offset=2

    I am targeting an update to be released in mid to late August which will address some of these issues.

  7. lolislol
    Member
    Posted 1 year ago #

    ok got it thank yo so much!!!!
    another quick question how should i change the read more link to a button like this

    thank you

  8. DerekCrosson
    Member
    Posted 1 year ago #

    You'd probably have to edit your theme to change the more button to a link

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.