Date and feature image

When using [globalrecentposts] there is no way to show a date and featured image. Please advise if it is possible to achieve.

  • Predrag Dubajic
    • Support

    Hi allanlove,

    I'm afraid that something like this is not possible out of the box and it would require some custom development.

    However, it's not that hard to be added and you can include it by editing /wp-content/plugins/recent-posts/recent-posts.php file and on line 83 add this piece of code:

    $n_post = network_get_post();
    switch_to_blog($n_post->BLOG_ID);
    $html .= get_the_post_thumbnail( $n_post->ID, array( 200, 200) );
    $html .= get_the_date( 'Y-m-d', $n_post->BLOG_ID );

    It should look like this:

    200 in that code is width and height of the featured image so you can change those values to adjust the featured image size.

    Best regards,

    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.