⬆️ ⬇️

Google+ Crossposting on WordPress





Formulation of the problem



How to display a fresh post from your Google+ on a WordPress site?





Implementation



All that is needed is to add the code:

')

<?php include_once(ABSPATH.WPINC.'/r​ss.php'); $googleplus = fetch_feed("http://plusfeed.appspot.com/xx​xxxxxx"); // xxxxxx —   ID echo '<a href="'; echo $googleplus->items[0]['link'];​ echo '">'; echo $googleplus->items[0]['summary​']; echo ''; ?> 

Source: https://habr.com/ru/post/125749/



All Articles