[resolved] How to make a link to write new articles (3 posts)

  1. quinz
    Posted 6 years ago #


    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 pageurl.com/file.php eventhough it should point to pageurl.com/blog/subsite/file.php

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

    Great thanks for you help in advance!

  2. quinz
    Posted 6 years ago #

    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.

  3. quinz
    Posted 6 years ago #

    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')

Topic Closed

This topic has been closed to new replies.

About this Topic