Switch Plugin – Possible?
-
Hi,
I wish to switch to your Knowledge Base Plugin from a previous plugin which is no longer active or updated, support for newer PHP versions and has security issues.
My question is: Is there a easy way to merge or import the articles or would I need to start over? Theme support shouldn’t be an issue as I use a basic theme (twentytwelve). It’s just the articles.
Cheers
-
The code is the pastebin above looks clean?
But, I am thinking this is probably because on other pages the entire template is being rendered normally. While on the front page you’re using a block/shortcode which is within the content area and so getting the extra markup around it.
You could use CSS to reduce the padding by specifically targeting the entry-content / post-header on the front page – probably other pages as well? I tend to play with that in Inspector view in FF as my CSS is nowhere close to PHP!
I’ve made this “Homepage mode” as I am calling it into the pro version of the plugin as it goes hand-in-hand with the custom permalinks feature that is part of the plugin.
Still working on release date and timelines.
Hi Ajay,
Sorry for the 2 week delay, been busy! Returning to my staging site now. Current progress is here.
While on the front page you’re using a block/shortcode which is within the content area and so getting the extra markup around it.
That is indeed the case! I ended up calling it via PHP file instead of a shortcode, perfect! Just working on the Search field now as you will notice from above link it’s not in the same page on homepage as articles.
I’m still wondering If possible to also override other files/folders? As per this comment. I haven’t had any luck so far trying to override
class-breadcrumbs.phpI’m still on 3.0.0-beta2 so will update to 3.0.0-beta3 not sure what’s new in beta 3 as the GitHub notes beta2’s.
The PHP file option was the best.
There isn’t an easy way to override the breadcrumbs as this isn’t a template. However, since you’re making your own templates, you code code in whatever is needed including the breadcrumbs.
What did you have in mind for the breadcrumbs?
Hi Ajay,
I managed to edit the direct file in the end to get what I wanted. I basically wanted to remove the extra item on the breadcrumb as mentioned here by “reason for modifying”.
Another thing I noticed this plugin doesn’t hide/throw 404-page articles that are marked as “Private” only visible to site admins and editors? Any regular guest can still view the link directly and it shows up in search results. Any ideas on this? Assume it’s a bug.
For a standard WordPress page it will throw a 404 page unless logged in as admin/editor same as my previous KB plugin I came from.
What is the exact edit you did – was it because of it being a homepage? I have yet to pull the trigger on pro.
How are you setting the Private? The articles are custom post types so I’m wondering if I am missing something.
Hi,
Yes, I simply wanted to remove the extra menu item as it was basically Homepage > Homepage as “Knowledgebase” was the Home and looked weird (I have slight OCD). In the end I just commented out the code in
class-breadcrumbs.phpnot recommended as updates will revert but oh well! Maybe we could add a checkbox in the settings “Is Homepage? Y/N” and it disables this item array? Could be a Pro feature.How are you setting the Private? The articles are custom post types so I’m wondering if I am missing something.
From All Articles (/wp-admin/edit.php?post_type=wz_knowledgebase) => Quick Edit => Check “Private” Box. Usually this marks the post/page/article as private and then to non-admins and editors the article will throw a 404 page.
However, after deactivating the plugin and re-enabling it seems it’s behaving like that now so not sure if it was a glitch or something? I’m on Beta2 still.
@davidblood
The homepage mode is in my near final pro version. I’ll look to launch this soon – targeting by end of this month.I’ve updated the Private setting to follow the user and letting WP handle this now. So, if you have private articles, you can see it if you have access to it – or at least if WP decides you can see it. Perfect for those who want to keep an internal or logged-in user only knowledge base.
You must be logged in to reply to this topic.