• Resolved goldmanas

    (@goldmanas)


    When Share button is added to the blog page, where are all my posts are, it doesn’t matter what post do you click to share, only the last one is shared.

Viewing 3 replies - 1 through 3 (of 3 total)
  • In share button: https://www.facebook.com/sharer/sharer.php?u={post link}

    So in button add the post permalink (with the “u” mean url part).
    The share button use global $post.

    For some reason, error with $post variable. This is possible with the theme error.

    If you give website link (with activated Lana Facebook Share plugin) or theme name (I download and testing). I checked the problem.

    Thread Starter goldmanas

    (@goldmanas)

    Hi,

    Sorry for the super late response! I was using gantry5 framework with hydrogen theme 🙂 I ended up not using the share function in the blog, so I kinda forgot to write you back.. Sorry.

    I tried Hydrogen theme and Gantry 5 Framework. Lana Facebook Share works well in post list page and post page.

    Maybe try to get everything updated to the latest version. I tried WordPress 4.7.3, Hydrogen 5.4.10 and Gantry 5 Framework 5.4.10

    Or it could be another plugin to blame. Plugin which modifies post url?!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sharing only last post’ is closed to new replies.