Title: Adding links manually
Last modified: August 20, 2016

---

# Adding links manually

 *  Resolved [Seemap](https://wordpress.org/support/users/seemap/)
 * (@seemap)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-links-manually/)
 * Hi
 * Thank you for this plugin, it is perfect for what I need 🙂 I’m trying to add
   the icons conditionally at the end of certain posts, using the_content filter,
   and your code `$wpsocialite->wpsocialite_markup('large')` It’s a fairly simple
   if statement, but am getting an error:
 * > Fatal error: Call to a member function wpsocialite_markup() on a non-object
   > in /home/etc… /functions.php on line 359
 * Any idea why this might happen? Or should I be using some other way to call your
   code? Am happy to provide the full function I’m using if you think it would help.
 * Thanks!
 * Seemap
 * [http://wordpress.org/extend/plugins/wpsocialite/](http://wordpress.org/extend/plugins/wpsocialite/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Seemap](https://wordpress.org/support/users/seemap/)
 * (@seemap)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-links-manually/#post-3132969)
 * Ok, it seems I am calling a class function within another function and that is
   not working. I’m in over my head here! Is there a way to add the content of `
   $wpsocialite->wpsocialite_markup('large')` to a variable within my function, 
   so I can call it in the “if” statement? Have been playing around with various
   googled suggestions but no joy so far. I realise this is beyond the scope of 
   the normal plugin use, but would be very grateful for any advice.
    Thanks in 
   advance.
 *  Thread Starter [Seemap](https://wordpress.org/support/users/seemap/)
 * (@seemap)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-links-manually/#post-3132998)
 * Me again 🙂 I finally figured it out. If anyone is interested, this is how you
   call the links into a variable to use anywhere:
    `$var = wpsocialite::wpsocialite_markup('
   large');`
 *  Plugin Author [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * (@tm3909)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-links-manually/#post-3133034)
 * Seemap,
 * Thanks for making a note of this. The plugin has changed so quickly I did not
   update the readme file fast enough! Your markup is correct, and I’ll update the
   readme file to reflect it.
 * Glad you like the plugin, and thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding links manually’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsocialite_f8f8f8.svg)
 * [WPSocialite](https://wordpress.org/plugins/wpsocialite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsocialite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsocialite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsocialite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsocialite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsocialite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/adding-links-manually/#post-3133034)
 * Status: resolved