Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @yuttab
    Here is a code sample from my website.
    https://connekthq.com/plugins/ajax-load-more/docs/code-samples/related-posts/

    Hope this helps.

    Thread Starter yuttab

    (@yuttab)

    Well, it’s not simple shortcode.
    My site works with elementor pro – i don’t understand where to insert it.

    Plugin Author Darren Cooney

    (@dcooney)

    Well, it’s not simple shortcode.

    Oh.

    i don’t understand where to insert it

    Im not quite sure either. I’ll have to figure out the best method for this.
    Are you using the Archive template is Elementor?

    Might not be able to get back to you for a couple days unfortunately.

    Thread Starter yuttab

    (@yuttab)

    Im using simple “hello” template.
    Tried to find the file to which it is substituting single.php
    And made changes to itself on single.php (by hello theme) and some analog of “single” by elementor pro.
    But nothing (
    Therefore decided that it would be desirable to do this through simply shortcode.
    This can be done through some taxonomy conditions ?

    Plugin Author Darren Cooney

    (@dcooney)

    I need to figure out an intuitive way to pass dynamic category/tag/taxonomy data to ALM. I’m thinking I need to create some sort of Related Posts functionality that automatically grab current terms based on some params.
    ^^^
    I’m actually surprised this hasn’t come up before.

    For now, you could potentially use the following filter.
    https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args

    This would require writing some custom PHP to get the current category as seen in the Related Posts example.

    Thread Starter yuttab

    (@yuttab)

    Unfortunately php is difficult for me (
    From your words I realized that it is possible in the future you will add such functionality to shortcodes ?!

    Plugin Author Darren Cooney

    (@dcooney)

    Yea, I’ve added this to my list of enhancements.

    I’m working on an add-on for infinite scrolling elementor post widget listing, maybe I can group this in with that.

    Thread Starter yuttab

    (@yuttab)

    That would be lovely.
    Especially if such functionality would be sewn into the main core of the plugin ??
    Thank you for the prompt responses!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Related posts from same category with shortcode’ is closed to new replies.