• Hello,
    I’m trying to make a knowledge base that just shows file x out of folder y.
    But whenever I go to the following it says that I’m not allowed to access this page
    wp-admin/admin.php?page=knowledgebase?article=article
    Anyone got an idea on how I could do this without creating a page for all articles?

    • This topic was modified 4 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    what plugin are you using for this?

    Thread Starter mathijsnm

    (@mathijsnm)

    Hello,
    Im coding a plugin myself.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    So this is a custom post type? Once you create a CPT, be sure to resave your permalinks.

    Thread Starter mathijsnm

    (@mathijsnm)

    Well Im creating menu item with submenu items. These are custom. And that leads to wp-admin/admin.php?page=pagename but now I want to create a knowledgebase for the plugin but creating a specific page for every article is alot of work. So im looking for a way to like use wp-admin/admin.php?page=knowledgebase&article=article1 and it will pick article1 from my folder with html files. I know how to do the 2md part but when entering that in my url ot says im not allowed to access that page.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    you can’t use wp-admin in a publicly facing menu because wp-admin is not available to non-logged in users. If you’ve created a CPT named “knowledgebase”, then a post of that type would be /knowledgebase/slug-for-your-post.

    but I get the idea that you’ve got a directory of .html files, so mabye this isn’t a custom post type, but a simple template, “knoweldgebase”, in which you’d parse the GET parms to figure out which HTML file in include, so a post would be “/knowledgebase?kb=abc”, though I think doing a bit of PHP magic to avoid use a GET parm and using something more like a “regular” URL would be best.

    dunno, without getting too deeply into your thinking and coding.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Also, have you considered using either a Wiki as the base site or a wiki plugin for WP for this?

    Thread Starter mathijsnm

    (@mathijsnm)

    Hi, I may have confused u. This is infact in the admin panel. Its a onowledgebase for site admins woth basic tutorials and such. Of needed I could provide my code.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Oh, ok. This plugin is out of date, but the code may be helpful for you: https://ww.wp.xz.cn/plugins/back-end-instructions/

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Knowledgebase Issues’ is closed to new replies.