-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a sample settings and metabox script? #97
Comments
Do you read documentation? http://vafpress.com/documentation/vafpress-framework/getting-started.html |
Of course. We have code like |
Do you know how to create theme in WP? |
Yes. You do not say in your documentation how to use the the small snippets of code. I can not find any full example code. is it like alchemy? |
Look this http://vafpress.com/documentation/vafpress-framework/metabox/builder.html require PATH_TO_VFPRESS.'/vfpress/bootstrap.php'; function my_init_metaboxes() { $meta_box = array( array( 'name' => 'field_name', 'type' => 'textbox', 'label' => __('Title'), ) ); $data = array( 'id' => 'uniqe_id', 'types' => array('post_types_list'), 'title' => __('Title'), 'priority' => 'normal', 'is_dev_mode' => false, 'template' => $meta_box, ); $VP = new VP_Metabox($data); } // the safest hook to use, since Vafpress Framework may exists in Theme or Plugin add_action( 'after_setup_theme', 'my_init_metaboxes' ); it was not tested (errors may occur). Regards |
Ah, ok, this is closer to what I am looking for. Thank you. Although, I did not think to look in the 'builder' sections. What I would really like to see are the scripts used to set up your demo site. If I had those scripts, I could easily build anything from your framework, just by copying your scripts. I have evaluated several frameworks, in the last week or so, and all of them had demo scripts that showed how to use every type of option/metabox/filed. |
Hi, |
For those searching, this appears to be it https://github.com/vafour/vafpress-framework-theme-boilerplate |
great this is it! :) |
I wish I knew that existed! |
I'm looking for a sample script that shows how to set up the settings, metaboxes, etc. I'm a little stumped. I have the framework included, as a library. Is there a settings array that i need to filter? do I set up a new framework object?
The text was updated successfully, but these errors were encountered: