Want To print/write/show “First Image Direct URL” and same for Post URL Of my post.

Discussion in 'HTML & Website Design' started by Lipitive, Mar 10, 2012.

  1. #1
    This is .JS File of one of the script, I really don't know anything about java.
    This Script tells a Share Button on my PHP Page that what to share on Facebook when someone click on share button on my wordpress post page. I already fixed one thing about the name that it will automatically takes post title from my wordpress post page and share it with the given link.
    Now I want two more changes in it.
    FIRST : I want that the share url which is currently I am giving as my home page, it automatically takes the current post url/link as my php file is none other than my posts pages and I am editing my single.php file so that the script can apply to all post with one single code.
    SECOND : I want that the image URL which will be share on facebook by user, like currently here is option to give one particular image url to gets share, I want something like it automatically takes first image or my post thumbnail so that I don't need to make everytime new .js file for all of my new post. Like if it will automatically takes first post image or thumbnail image to share on facebook, it will be really easy for me, like currently for Title, its directly copying title from post title and sharing it to facebook for all of my post with the post titles.
    Now I want to Edit these two for share link problem so that it automatically shares current page url i.e. post url for sure as php page is my post page only.
    And the second thing is the image URL line where I want something like it automatically takes post thumbnail or first/second/third whatever the image number is from the post to share it on facebook when users click share button on my post pages.
    WAITING FOR RESPONSES PLEASE REPLY AS SOON AS YOU CAN.
    I DON'T KNOW THAT ITS HARD OR EASY BUT I KNOW ITS POSSIBLE FOR SURE.
    THANKS
     
    Lipitive, Mar 10, 2012 IP