• Resolved shyfrog

    (@shyfrog)


    Hello,

    I’ve created a loop item template in Elementor and have inserted the shortcode [Sassy_Social_Share] into the loop. I need to use the loop editor to customize what is being shown in our latest posts on the home page. The short code seems to work when I’m building the loop (it shows the correct like to the article as it should be rendered in the loop, but when I implement it on the home page, the shortcode seems to think every article is the homepage URL and does not share the individual article URL as expected.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi Shy Frog,

    You can specify the URL to be shared explicitly, using the url attribute in the shortcode.

    Thread Starter shyfrog

    (@shyfrog)

    I see that… but what is the code I need to insert after “url=” that pulls each URL for the articles automatically?

    Plugin Author Heateor Support

    (@heateor)

    It depends on the code of your loop. You need to insert URL of the individual article in the url attribute of the shortcode. Something like following.

    // code of the loop
    <?php echo do_shortcode( '[Sassy_Social_Share url="' . $post_url . '"]' ); ?>
    // code of the loop continues

    If you still face problem, let me know the exact code you are using. You can shoot an email to support[at]heateor[dot]com, if you don’t want to post the code here.

    Thread Starter shyfrog

    (@shyfrog)

    Hello,

    I am using the Elementor loop item within their theme builder. There are no options to allow PHP from within the theme builder. I’m beginning to think the only way is by adding a function that targets the loop item and inserts it.

    I’m not certain how to go about that.

    Plugin Author Heateor Support

    (@heateor)

    ?>>>I’m beginning to think the only way is by adding a function that targets the loop item and inserts it.
    I would suggest you seek support of your theme-dev to do as I mentioned.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Elementor Loop item not pulling article URL’ is closed to new replies.