• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Wordpress

Wordpress World

  • Submit
  • Disclaimers
  • About
  • DMCA
  • Privacy Policy
  • Contact

You are here: Home / Linked pages not working with wordpress

Linked pages not working with wordpress

September 27, 2019 by

I used this code to create a menu page which loads mypluginpage.php and it works fine with my plugins.

I can access it from something like http://mysite/wp-admin/admin.php?page=myplugin

<?php // Add menu function myplugin_menu() { add_menu_page("myplugin", "my plugin","manage_options", "myplugin", "mypluginpage",plugins_url('/myplugin/img/icon.png')); } add_action("admin_menu", "myplugin_menu"); function mypluginpage(){ include "mypluginpage.php"; } 

Here is my issue: Inside mypluginpage.php below, I have a link that should take me to welcome.php within admin page

<?php wp_head(); ?> <a href="<?php echo admin_url('welcome.php'); ?>">Take me to welcome page within admin</a> <?php wp_footer(); 

I thought am supposed to have something like this link below which will still keep me within admin page

http://mysite/wp-admin/admin.php?page=welcome

but I got

http://mysite/wp-admin/welcome.php

which leads me to page not found

I need to have welcome.php page to called within admin. any help will be appreciated..


  • Advance historic page from Sept. 8, 1960: Boats for hire
  • Advance historic page from Sept. 4 1970: Bowling season perks up
  • Advance historic page from Feb. 1, 1929: Military ball planned
  • Advance historic page from May 11, 1925: Summer concerts planned
  • Study links youths' slow 'working memory' to high crash rates
  • My Life – Caroline Link
  • An Open Letter (and a Rant) on Age Discrimination at Work
  • Working Families Party Endorses Elizabeth Warren
  • Brad Stevens, Celtics happy to turn page to new season
  • Trade in academic work thrives in Macedonia and Bosnia

Filed Under: Tags pages in wordpress, pages on wordpress, linking instagram to facebook business page, linking instagram to facebook page, how landing pages work, best landing page plugin wordpress, page attributes template wordpress, links not working, page attributes wordpress, blackberry link has stopped working, linking pages in pdf, page id wordpress, links page, how do dropbox links work, custom wordpress page, wordpress link pages, page attribute wordpress, wordpress adding pages, wordpress links page, wordpress mailto link not working, wordpress linking pages, broken link fixer wordpress, adding pages in wordpress, page php wordpress, website links page, page category wordpress

Primary Sidebar

RSS Recent Stories

  • Remove unwanted elements for a wp_nav_menu
  • Get_term_meta() always returns false
  • How to ask WordPress to generate XHTML?
  • Get user count based on multiple meta key values?
  • 21 Best Coffee Shop Themes for WordPress (2019)
Copyright © 2019 Wordpress. Power by Wordpress.