Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@egnsh98– You should be able to
required_oncein any php file in the parts/ folder. Is it possible you are not including the correct or full path to the file?Fortunately, Piklist can help you with this since it stores the paths of all Piklist Plugins in:
piklist::$paths['my-plugin-folder']So if your code is located in /my-plugin/api/api.php, try including it like this:
require_once(piklist::$paths['my-plugin'] . '/api/api.php');Make sure you include
Plugin Type:in your plugins header block, so Piklist will store the path.Let us know if that works for you.
SteveKeymaster@tejascreation– get_post_meta() is a standard WordPress function that’s been around since WordPress 1.5, so I’m guessing it has to do with something else.
Your single.php file seems to be in the root directory of your WordPress install, when it should be in your themes folder. See if moving that file helps.
SteveKeymaster@tejascreation– Activating Piklist Demos creates a Demo post type, Taxonomy, Settings Page, User fields, Dashbaord widget, Help tabs and Widget, with Field Examples… no video.
June 19, 2014 at 9:27 am in reply to: piklist folder is loading under plugin but not under themes #1846
SteveKeymaster@tejascreation– Can you post your folder structures here?
SteveKeymaster@tejascreation– Plugins don’t require a /piklist/ folder:
http://piklist.com/user-guide/docs/piklist/folder-structure/
SteveKeymaster@kattagami– Glad it wasn’t a Piklist bug and you were able to identify the issue.
SteveKeymaster@kattagami–- I still can’t reproduce. The meta box works perfect for me.
You may want to run your own tests to see if you can find the bug. Open class-piklist-cpt.php. The line that looks like:
&& (!$data['capability'] || ($data['capability'] && current_user_can(strtolower($data['capability']))))contains the logic. Try some of your ownifstatements withcurrent_user_canto see if you can figure out why it’s not working.
SteveKeymaster@darlantc– I look the idea of Glotpress. I’ll look into installing. Will send you POT file when ready.
SteveKeymaster@kattagami– I can’t reproduce this error. Seems to work for me. Can you post the code used to register “projets”?
SteveKeymaster@darlantc– We’re really trying to get localization in a better place, and the next version of Piklist should be 99% localized. While we do want your po file, it will probably be incomplete due to all the changes. I can send you an updated POT file if you want.
SteveKeymasterNice! It will be in the next version of Piklist.
SteveKeymaster@darlantc– I think I solved the bug.
Please open the file class-piklist.php and replace the
load_plugin_textdomainline with:
load_plugin_textdomain('piklist', false, 'piklist/languages/');Let me know if that works.
SteveKeymaster@darlantc– You can reset the user profile by turning off the Piklist Demos (under Add-ons in Settings). However, it shouldn’t be doing this. If you turn on wp_debug do you see any errors?
SteveKeymaster@tripflex– This is a very cool plugin and it looks like it has lots of potential. Unfortunately, Piklist was never intended to be included in a plugin or theme. Your post has prompted us to write an article on why we don’t love the idea. I hope once you read it you will agree and resubmit your plugin to WordPress.org without Piklist included.
Always happy to discuss this further.
-
AuthorPosts