few suggestions
-
Hey,
I’v just found your plugin and tested it and there’s few things you can update and fix.
( it’s just a suggestions )
1. You don’t have flush_rewrite_rules() function on plugin activation and as i can see you don’t have options uninstall from DB when plugin is deleted.
When i 1-st time activated your plugin, added Wip and tryed to see it it gave me 404 page, becouse there was no flush and i had to go to settings and change permalink structure to default and back. Then it worked.
2. You have custom template defined in plugin folder. You could make shortcode that will output everithing that your plugin should ( i.e content, images atc. ) after the content ( can be added with add_action( ‘the_content’ … ); you simply check if is your post type and add to content it ( $content = $content . do_shortcode(‘[yourshortcode]’) ).
Why ? becouse whene i tryed to see Wip’s page it was broken comepleatly.. but if you use shortcode it woun’t be broken.For now that’s all what i’v found that can be improved.
Hope my suggestions will be helpfull )
The topic ‘few suggestions’ is closed to new replies.