• Resolved chillmen

    (@chillmen)


    Hi,

    is it possible to create related posts with this plugin, i see there is an option to exclude current post, that’s a good start, but could not achieve what i’m looking for.

    I was looking to display related posts by similar tags, is there an option i’m missing or it’s not possible to do it ?

    Thank you in advance for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Code Amp

    (@codeamp)

    Hey @chillmen

    This plugin won’t be able to “figure out” the related posts itself.. however if you have a way to do that , then you could dynamically pass in the desired Post IDs into the layout.

    It would require some PHP knowledge though – the idea is you would use a hook to modify the query that is run – custom-layouts/layout/query_args

    More info here: https://customlayouts.com/documentation/action-filter-reference/

    What you would need to then do is update the post__in key to the IDs you want to show, eg:

    $query_args['post__in'] = array( 1, 2, 3 );

    This would show posts with the IDs 1, 2 and 3

    I hope that helps!

    Thanks

    Thread Starter chillmen

    (@chillmen)

    Hi,

    Thanks for explanaing but it’s complicated for me, i will use the options that the plugin already offers.

    Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to create related posts with this plugin ?’ is closed to new replies.