Anthon9 Posted September 2, 2016 Share Posted September 2, 2016 I am trying to create a plugin for the first time. I have xampp up and running, I created a php plugin file in my wp-contents/plugin directory I followed every step of the tutorial but the plugin is not showing in my wordpress dashboard what could be wrong? Quote Link to comment https://forums.phpfreaks.com/topic/302064-plugin-in-i-tried-and-develop-is-not-showing-up-in-my-plugin-content-dashboard/ Share on other sites More sharing options...
maxxd Posted September 2, 2016 Share Posted September 2, 2016 That could be many things, but we won't know for certain until we get some details from you and see some of the code you've written. There are many, many tutorials out there - some are good, some are not. With the information you've given, we have no way of knowing which kind you're attempting to follow. First thing to come to mind is did you format the comment section at the top the file correctly? Also, the plugin won't show on the dashboard page, you'll have to activate it through the Plugins page first - is that where it's not showing up? Do any other plugins show up on the Plugins page? Quote Link to comment https://forums.phpfreaks.com/topic/302064-plugin-in-i-tried-and-develop-is-not-showing-up-in-my-plugin-content-dashboard/#findComment-1536995 Share on other sites More sharing options...
Anthon9 Posted September 2, 2016 Author Share Posted September 2, 2016 (edited) Hi The code is: <?php /** * Plugin Name: My Facebook Tags * Plugin URI: http://danielpataki.com * Description: This plugin adds some Facebook Open Graph tags to our single posts. * Version: 1.0.0 * Author: Daniel Pataki * Author URI: http://danielpataki.com * License: GPL2 */ location wordpress>wp-content>plugins It is not showing on the plugins page in wordpress Edited September 2, 2016 by cyberRobot surrounded code with [code][/code] tags Quote Link to comment https://forums.phpfreaks.com/topic/302064-plugin-in-i-tried-and-develop-is-not-showing-up-in-my-plugin-content-dashboard/#findComment-1537005 Share on other sites More sharing options...
cyberRobot Posted September 2, 2016 Share Posted September 2, 2016 (edited) Did you try removing the asterisk and spaces before the keywords like "Plugin Name"? Never mind. I just pasted your header into a PHP file and uploaded it to a WordPress website. Everything worked fine for me. Did you name the file with a .php extension? Edited September 2, 2016 by cyberRobot Quote Link to comment https://forums.phpfreaks.com/topic/302064-plugin-in-i-tried-and-develop-is-not-showing-up-in-my-plugin-content-dashboard/#findComment-1537010 Share on other sites More sharing options...
maxxd Posted September 2, 2016 Share Posted September 2, 2016 Weird. That header is correct. Just for fun, have you tried zipping the files and using the 'Upload Plugin' button? Quote Link to comment https://forums.phpfreaks.com/topic/302064-plugin-in-i-tried-and-develop-is-not-showing-up-in-my-plugin-content-dashboard/#findComment-1537017 Share on other sites More sharing options...
Anthon9 Posted September 2, 2016 Author Share Posted September 2, 2016 I used the .php extension for the code file. "Just for fun, have you tried zipping the files and using the 'Upload Plugin' button?" I have not tried this Quote Link to comment https://forums.phpfreaks.com/topic/302064-plugin-in-i-tried-and-develop-is-not-showing-up-in-my-plugin-content-dashboard/#findComment-1537021 Share on other sites More sharing options...
maxxd Posted September 2, 2016 Share Posted September 2, 2016 I have not tried this I can't guarantee it'll make a difference, but it's worth giving it a shot. Quote Link to comment https://forums.phpfreaks.com/topic/302064-plugin-in-i-tried-and-develop-is-not-showing-up-in-my-plugin-content-dashboard/#findComment-1537022 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.