Forum Replies Created
-
AuthorPosts
-
ajayphpMemberI created plugin which is not relate to any WP post type of wp default table.
this is admin page gateways.php
main menu
form fields:
gateway title:
gateway Api URL:
Api username:
Api password..now how could i save these data into table gateways ..
???
November 10, 2014 at 11:08 am in reply to: how to add piklist_admin_pages without post type, independent admin pages ? #2718
ajayphpMember– how to save data is missing in your example ?
ajayphpMemberHi,
add_filter(‘piklist_pre_update_option’,’ – using for access data before save,
and logically when you are returning data base after modification,
that is understood nothing will save when callback to this functionupdate_option_update($settings, $setting, $new, $old = array())
so $old = array() , as default pre initialize to over error , what other for you have in mind,
which i am missing ?what is the hook you have for save admin page data ..?
ajayphpMemberHi,
I usually you wp hook “save_post”, but here i am creating not post type,
this is just a admin page .., where i have form and that have to save,
which piklist hook will save data of admin page..?
ajayphpMemberHi,
I created another plugin with custom post type and activate then it given following error:
Error:
The plugin generated 1 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
Regards,
ajayphpMemberHi,
I found its working only in when we use “save” => true , or with save button
if we do “save” => false then hope js not loading..Regards,
ajayphpMemberI created custom post type plugin
when browse that in adminthere were error : Warning: extract() expects parameter 1 to be array, null given in /var/www/piklist/wp-content/plugins/wp-helpers/wp-helpers.php on line 390
wp fresh install
could you please point out what could be wrong?
ajayphpMemberHi,
your wp-helper giving error:
line 382 – following function:
public static function remove_filter($filter, $tag)i put the condition return if calling when loading front
//AK – remove front end error
if(!is_admin()){
return;
}still you have to verify this as this is done temorary as i am not aware of your whole logic .
November 9, 2014 at 9:48 am in reply to: how to convert post field post_content as normal content area instead of editor #2688
ajayphpMemberHi,
in post type support array when i used textarea instead of editor
then only title were display while add new item , not any content area:$post_types[‘supercode’] = array(
‘labels’ => piklist(‘post_type_labels’, ‘Keywords’)
,’title’ => __(‘Enter Keyword Title’)
,’supports’ => array(
‘title’
,’textarea’
)
ajayphpMemberStill i am learning the hw to use piklist:
add_filter(‘piklist_post_types’, ‘supercode_post_types’);
function supercode_post_types($post_types)
{
$post_types[‘supercode’] = array(
‘labels’ => piklist(‘post_type_labels’, ‘Keywords’)
,’title’ => __(‘Enter Keyword Title’)
,’supports’ => array(
‘title’
,’editor’
)
,’public’ => true
,’rewrite’ => array(
‘slug’ => ‘keywords’
)
,’capability_type’ => ‘post’
,’edit_columns’ => array(
‘title’ => __(‘Keyword’)
,’author’ => __(‘User’)
)
,’hide_post_row_actions’ => array(
‘trash’
,’edit’
,’quick-edit’
)
,’hide_meta_box’ => array(
‘slug’
,’author’
)
,’menu_icon’ => plugins_url(‘supercode/parts/img/cell-icon.png’)
,’page_icon’ => plugins_url(‘supercode/parts/img/mobile-icon.png’)
,’admin_body_class’ => array (
‘piklist-demonstration’
,’piklist-sample’
)
,’status’ => array(
‘draft’ => array(
‘label’ => ‘Pending Save’
)
,’estimate’ => array(
‘label’ => ‘Request for Estimate’
)
,’quoted’ => array(
‘label’ => ‘Quoted’
)
)
);return $post_types;
}November 9, 2014 at 9:39 am in reply to: how to add piklist_admin_pages without post type, independent admin pages ? #2686
ajayphpMemberHi,
example i want to create plugin as following:
do not want to create custom post type for this ( not required )Sms Sender <main menu>
Send Quick SMS <sub-menu>
Send Bulk SMS <sub-menu>
SMS Report <sub-menu>
SMS Setting <sub-menu>this plugin is independent and not any relate to WP default db or setting.
in every menu, submenu i want to show few forms as per
and user to use the functionlaity as per– will use custom tables
– how can i create main menu and sub menu
– how can i create form fields,
– how to save data
Could you please suggest how to achieve this … -
AuthorPosts