WordPress.org

Forums

[resolved] Capabilities Manager (2 posts)

  1. Tsalagi
    Member
    Posted 5 years ago #

    Howdy! I'm using the Capabilities Manager plug-in which works great in the admin area. However if the current user logged in has author level privileges creating a link on a page to create a new page like so
    <li><a href="<?php bloginfo('url') ?>/wp-admin/post-new.php">New Page</a></li> doesn't take the user to the admin area to create a new page, it displays a page saying the user doesn't have sufficient permissions to access this page. This is the same link that is used to create a new page in the admin area and the user can use the link in the admin area to create a new page. Anyone have any ideas or solutions?

    Thanks

  2. Tsalagi
    Member
    Posted 5 years ago #

    I solved the problem! Instead of using

    <a href="<?php bloginfo('url') ?>/wp-admin/post-new.php"></a>
    Instead use:
    <a href="<?php echo get_option('home'); ?>/wp-admin/page-new.php"></a>

Topic Closed

This topic has been closed to new replies.

About this Topic