WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Question about functions and links (2 posts)

  1. KyleAdams
    Member
    Posted 2 years ago #

    I am trying to create a link that has an href of

    <a href="<?php admin_url('post-new.php');?>">Apples</a>

    How ever instead of displaying site/wp-admin/post-new.php it just displays site.

    What am I doing wrong?

    The same thing happens with:

    <a href="<?php get_admin_url( $blog->userblog_id, 'post-new.php' ) ?>">New Post</a>

    can some one give me ideas as to why this is NOT working?

  2. chadrew
    Member
    Posted 2 years ago #

    <a href="<?php echo admin_url('post-new.php');?>">Apples</a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.