Ready to get started?Download WordPress


[Plugin: Sociable] Pdf icon and function (3 posts)

  1. lore82lolli
    Posted 5 years ago #

    Hello all,

    I added to this Sociable great plug in an icon for pdf printing,
    in the configuration file I need to add the url, how?

    I actually use the working post2pdf and the string is


    but it come back with a blank pdf.. there is something wrong with ##GLOBALID## ???

    thank you..

    do you know some better plugin or other suggestion?

  2. Joost de Valk
    Posted 5 years ago #

    Hmm I could probably make this work, right now though, there's no way to insert the ID, I'll add that with the next release.

  3. dhvrm
    Posted 5 years ago #

    1. Locate in sociable.php this line, somewhere around like 655: $post = $wp_query->post;

    2. After that line, add this line: $postid = $post->ID;

    3. Find this line, somewhere around line 692: $url = $site['url'];

    4. After that line, add this line: $url = str_replace('POSTID', $postid, $url);

    5. When making your link, change your URL from this:

    to this:


    It should work, if my assumptions are correct.

Topic Closed

This topic has been closed to new replies.

About this Topic