Blog page using homepage URL for share link
-
When using the Social Media Feather widget on my blog page, I noticed that the share buttons use the homepage URL rather than the blog page URL.
I tracked this down to line 715 in synved-social/synved-social.php. That line reads:
else if (is_home())
… but it should be:
else if (is_front_page())
The
is_home()
conditional only tells you if the posts index page is showing, NOT if the homepage is showing. For that you wantis_front_page()
. (For example, if you tell WordPress to use a static front page, as I do,is_home()
returns FALSE on the homepage, but TRUE on the blog page.)Reference: https://codex.www.ads-software.com/Conditional_Tags#The_Front_Page
- The topic ‘Blog page using homepage URL for share link’ is closed to new replies.