Support » Fixing WordPress » How to make a link to write new articles

  • Resolved quinz



    I’m using the multisite feature and trying to add a link to posting page. The link should appear on every subsite. Naturally I cannot use the absolute path because it’s different for every subsite but relative path doesn’t work either as it’s pointing to my root. F.e if I put /file.php as path it shows up as eventhough it should point to

    So what is the right way to retrieve the correct path?

    Great thanks for you help in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Let’s add: I’m creating a custom meta widget with special links so what I need is the url to put in href-tags that it goes to right places in every subsite. I’ve been searching for wp functions to retrieve the url but I’m still with empty hands.

    I answer to myself as I found it out already: admin_url() function worked for me. F.e link to write new blog entry works with admin_url('post-new.php')

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make a link to write new articles’ is closed to new replies.