Social links sharing, in general

Using the Icon list I made simple social sharing for Twitter and Facebook. Both icons are in the footer.
For Twitter, for example, the settings are such that the link is an external URL and the URL itself is

https://twitter.com/intent/tweet?text={post_title}&url={post_url}.

Everything works but with one big problem: the link does not give the displayed page from the archive template (everything is done in the Query Loop) but a random, or the first, page from the CPT source with which the archive was created, in the mentioned Query loop.
How to make the shared link show the exact and specific page that is currently on the screen?

Hi @Bojan,

I just added an icon list inside a query loop and added your URL inside it.
This works fine and a different URL with the correct parameters is displayed each time:

Maybe I don’t understand what doesn’t work?

Have a great day,
Thomas

Thomas, thanks for your comment :slight_smile:

  1. CPTs are made by JetEngine.
  2. The archive was created with Query Loop.
  3. A single template is made for each category and those links are OK when I share them in the way I mentioned.
  4. When, for example, page 4 of one of the Archive templates is opened, it has its own link of the type: website.com/poems/page/4/. My URL, in my opinion, should point to that very link. However, the result of that scheming is completely different. I get the following in a new window, with the twitter text: website.com/poems/completely-different-peom. The title of the poem on the mentioned page 4 is, for example, “Some other title of poem”.
    I don’t know if I am clear in my explanation…

I note that the social icons are placed in the footer, I think that way I cover the entire site. Maybe I’m wrong…