I've been struggling with this question for a while and although there's some information regarding this subject I'm not sure how to implement it. My question regards sharing the current page.
I am using
<?php echo get_permalink(2926); ?> it shows the correct post.
This is happening because it's being called outside the loop.
get_queried_object is apparently another option to do so.
But unfortunately my PHP knowledge is very limited in order to glue the pieces together. I appreciate any help!
I like to add: Permalink settings are: website.com/%postname%.html
Each social icon on the homepage should share that specific post. I did the the same on the English version of that website with Facebook Likes which works like a charm. Now i'm trying to achieve the same with the Chinese social icons...
At loop.php on line 30 I call the get_permalink() function as such: