WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding more than one plugin to admin page? (7 posts)

  1. rjacob
    Member
    Posted 8 years ago #

    I am working on a new plugin that will have an entry on the options admin page or possibly the manage admin page. I currently already have plugins installed that have entries under these admin pages (Google Sitemap on options, and Backup on manage). When I activate my plugin it will successfully add an entry to one of these menus depending whether I use the add_option_page or add_management_page call. When I hold the cursor over my plugin link it shows .../wp-admin/options-general.php?page=crawlpage.php, but when I click the link, it executes sitemap.php. If I deactivate the Google Sitemap plugin, then click my plugin link, it will succesfully run my plugin.
    These are the add_options_page calls:
    My plugin:
    add_options_page('Crawl Page Generator', 'Crawl Page', 8, basename(__FILE__), 'cp_options_page');
    Sitemaps call:
    add_options_page('Sitemap Generator', 'Sitemap', 8, basename(__FILE__), 'sm_options_page');

    Is there a limitation to having only a single plugin link on an admin page without having a conflict?

  2. rjacob
    Member
    Posted 8 years ago #

    Anyone?

  3. James
    Happiness Engineer
    Posted 8 years ago #

    What version of WordPress are you using?

  4. rjacob
    Member
    Posted 8 years ago #

    Version 1.5

  5. James
    Happiness Engineer
    Posted 8 years ago #

    There was a similar bug to this in v1.5. Upgrading to v1.5.2 should fix the problem (and fix several security vulnerabilities as well).

  6. rjacob
    Member
    Posted 8 years ago #

    I'll give it a shot, and see if it fixes the issue. Thanks!

  7. rjacob
    Member
    Posted 8 years ago #

    I installed WP version 1.5.2, and that did seem to fix the issue! Thanks much! Now I can continue to develop my plugin without thinking I had done something wrong!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.