• Basically I need to make a page which is not regular page or post.
    Basically what I need is to make a link, example

    https://www.my_wordpress.com/ma_page

    my plugin would have to check what the current link is

    oh! its ‘ma_page’

    lets load a template from plugin (not from theme)

    Bascil functionality:

    function virtual_page() {
    $url_name = check_url();
    if ($url_name == ‘my_page’) {
    /* load the content from plugin themplate */
    ob_start();
    include ABSPATH . ‘wp-content/plugins/virtual_page/page.php’;
    $content = ob_get_contents();
    ob_get_clean();

    /* and here display the content on virtual page */
    /* how ? */

    }

    }

    of course I don’t need page in admin section!!!!!!!

    thanks for clues

Viewing 1 replies (of 1 total)
  • Did you find an answer for this? I’m trying to make my plug-in add a page to the main navigation which it will handle when clicked.

Viewing 1 replies (of 1 total)
  • The topic ‘add virtuall page’ is closed to new replies.