Support » Fixing WordPress » Link to latest post from external site

  • Hi folks

    I want to post a link on an external website that shows my most recent blog post title automatically, something like:

    Latest Blog News: latest post title goes here

    I am using permalinks custom as /%category%/%postname%/ if that helps.

    So I need the relevant path to use ie. <a href="">

    Hope that makes sense!

Viewing 3 replies - 1 through 3 (of 3 total)
  • If I understand you correctly: you want to create a link on site (a) which point to the latest post on site(b), is that correct?

    If so, it can’t be done in a conventional way. However, if you write some PHP code on site (a) which grabs the RSS feed from side (b), then that code could simply parse the XML, and output the title and link of the first item. If you have PHP V5, you should be able to do it using the SimpleXML library.

    oh dear! Thanks pizdin but I don’t know any PHP so I guess I’ll have to forget this one. Shame.

    Contact these people, I believe they have done some work in this area just recently.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link to latest post from external site’ is closed to new replies.