Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #94190

    val s
    Participant

    Hey Xers-

    Is there any way to add “related posts” thumbnails/links into the sidebar? I saw the recent posts shortcode, but I don’t want recent posts as my site’s homepage will already be displaying the latest/recent posts.

    I want to manually select which posts and thumbnails are displayed in the sidebar widget – I don’t want WP (or X) to choose the posts based on tags or categories – I want to add them myself.

    I’m using the Ethos child theme.

    Thanks for your time.

    #94256

    Mrinal
    Member
    #94281

    val s
    Participant

    Okay – thanks! 🙂

    #94294

    Mrinal
    Member

    You’re Welcome Val!

    Have a nice day, Cheers!

    #890180

    theyoungrens
    Participant

    Those plugins are for recent posts, do you have any recommendations for plugins that show related posts that works well with X? Thanks!

    #890599

    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can have a look at YARPP (Yet Another Related Posts Plugin)

    https://wordpress.org/plugins/yet-another-related-posts-plugin/

    Thanks.

    #1014408

    yukuza
    Participant

    Hi,
    I managed to show related posts using the recent posts shortcode, just by changing some lines in the code. So whenever I enter “related” as tag in the shortcode, it will check the posts tags and show the most recent related posts. It is working fine for me!

    if( !empty( $tag ) ) {
    if ($tag == ‘related’){
    $args[‘tag’] = strip_tags(get_the_tag_list( ”, ‘, ‘, ” ));
    the_tags( ”, ‘, ‘, ” );
    } else {
    $args[‘tag’] = $tag;
    }
    }

    #1014459

    Thai
    Moderator

    Thanks for sharing @yukuza 🙂