Forum Replies Created
-
AuthorPosts
-
toni bird
ParticipantHi Long,
Thanks for you help, I managed to get a work around for my problem... not sure why everytime I use date format I get the error... . Still getting the blank screen... however suits me now with my work around, will come back to this issue another time later... thanks
toni bird
ParticipantHi Long, thanks for your reply...
https://share.getcloudapp.com/rRuWpeRXmany thanks
toni bird
ParticipantHi Long,
Thanks for testing, not sure what was wrong, but it works now, many thankstoni bird
ParticipantHi Long, got it sorted, many thanks
toni bird
ParticipantHi Long, thank you so much, that is perfect
regards.
toni bird
ParticipantHi Long, many thanks for your reply.
not sure what I am missing. my code is actually printing the below, any help why is not changing the "atividade_status" value , but is adding after the array ?
add_action( 'init', function() { $group = get_post_meta( 15, 'group_atividade', true ); $group['atividade_status'] = 'PARALISADA'; rwmb_set_meta( 'group_atividade',15, $group); foreach ($group as $key=>$val) { if ($key=="atividade_status" && $val=="Iniciada") { $val="Paralisada"; } } }, 99 ); echo '<pre>'; print_r( $group ); echo '</pre>';and what is printing below.
( [0] => Array ( [setor_atividade_rdo] => teste 01 [nome_atividade_rdo] => Limpeza de canteiro [atividade_status_rdo] => Iniciada [data_inicio_rdo] => 13/05/2021 [data_fim_rdo] => 13/05/2021 [data_previsao_rdo] => 14/05/2021 [data_pause_rdo] => 12/05/2021 [data_play_rdo] => 12/05/2021 [desc_atividade_rdo] => tttt ) [1] => Array ( [setor_atividade_rdo] => rest [nome_atividade_rdo] => Forma de madeira [atividade_status_rdo] => Iniciada [data_inicio_rdo] => 13/05/2021 [data_fim_rdo] => 13/05/2021 [data_previsao_rdo] => 14/05/2021 [data_pause_rdo] => 12/05/2021 [data_play_rdo] => 12/05/2021 [desc_atividade_rdo] => tttt ) [atividade_status_rdo] => PARALISADAany help would be much appreciated. cheers
toni bird
ParticipantHi Long , does it work for cloned groups as well?
many thanks
toni bird
ParticipantHi Long, thanks for your reply, will give it a try.
regards
toni bird
ParticipantHi Long, thanks for your help, its working
toni bird
ParticipantHi Long,
Group Itens are sharing the same cell, different rows, but same cell any ideas how to get it on the next cell ?
<table class="tg"> <thead> <tr> <th class="tg-zlqz"><h9>SETOR</h9></th> <th class="tg-zlqz"><h9>NOME ATIVIDADE</h9></th> <th class="tg-zlqz"><h9>DATA INÍCIO</h9></th> <th class="tg-zlqz"><h9>DATA FIM</h9></th> <th class="tg-zlqz"><h9>STATUS</h9></th> <th class="tg-zlqz"><h9>DESCRIÇÃO</h9></th> </tr> </thead> <tbody> <tr> <td class="tg-0pky"><h9>{% for clone in post.group_atividade %} {{ clone.setor_atividade }} <br> {% endfor %}</h9></td> <td class="tg-0pky"><h9>{% for clone in post.group_atividade %} {{ clone.nome_atividade }} <br> {% endfor %}</h9> </td> <td class="tg-0pky"><h9>{% for clone in post.group_atividade %} {{ clone.data_inicio }} <br> {% endfor %}</h9></td> <td class="tg-0pky"><h9>{% for clone in post.group_atividade %} {{ clone.data_fim }}<br> {% endfor %}</h9></td> <td class="tg-0pky"><h9>{% for clone in post.group_atividade %} {{ clone.atividade_status }}<br> {% endfor %}</h9></td> <td class="tg-0pky"><h9>{% for clone in post.group_atividade %} {{ clone.desc_atividade }}<br> {% endfor %}</h9></td> </tr> <tr> <td class="tg-0pky"></td> <td class="tg-0pky"></td> <td class="tg-0pky"></td> <td class="tg-0pky"></td> <td class="tg-0pky"></td> <td class="tg-0pky"></td> </tr> </tbody> </table>
toni bird
ParticipantHi Long,
Seems to be the best option,will go that route. Many thanks.cheers
toni bird
ParticipantThanks Long, I will try on a fresh wordpress installation... tried already what you told me but didn't work. cheers
toni bird
ParticipantHi Long, not sure why frontend submission is not working for me, code below, can you help please ? Doesn´t save on the database nor give confirmation message ....thanks
shortcode [mb_frontend_form id='cliente' confirmation]
metabox code
<?php add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $prefix = ''; $meta_boxes[] = [ 'title' => esc_html__( 'Cliente', 'text-domain' ), 'id' => 'cliente', 'post_types' => ['budget'], 'context' => 'normal', 'priority' => 'high', 'autosave' => true, 'fields' => [ [ 'id' => $prefix . 'post_title', 'type' => 'text', 'name' => esc_html__( 'title', 'text-domain' ), 'class' => 'post_title', ], [ 'id' => $prefix . 'numero_proposta', 'type' => 'text', 'name' => "###N\xc3\x9aMERO PROPOSTA###", 'class' => 'numero_proposta', ], [ 'id' => $prefix . 'nome_cliente', 'type' => 'text', 'name' => esc_html__( 'NOME', 'text-domain' ), 'class' => 'nome_cliente', ], ], 'table' => 'bdg_tanksbr', 'storage_type' => 'custom_table', ]; return $meta_boxes; }post_type code
function your_prefix_register_post_type() { $args = array ( 'label' => esc_html__( 'budgets', 'text-domain' ), 'labels' => array( 'menu_name' => esc_html__( 'budgets', 'text-domain' ), 'name_admin_bar' => esc_html__( 'budget', 'text-domain' ), 'add_new' => esc_html__( 'Add new', 'text-domain' ), 'add_new_item' => esc_html__( 'Add new budget', 'text-domain' ), 'new_item' => esc_html__( 'New budget', 'text-domain' ), 'edit_item' => esc_html__( 'Edit budget', 'text-domain' ), 'view_item' => esc_html__( 'View budget', 'text-domain' ), 'update_item' => esc_html__( 'Update budget', 'text-domain' ), 'all_items' => esc_html__( 'All budgets', 'text-domain' ), 'search_items' => esc_html__( 'Search budgets', 'text-domain' ), 'parent_item_colon' => esc_html__( 'Parent budget', 'text-domain' ), 'not_found' => esc_html__( 'No budgets found', 'text-domain' ), 'not_found_in_trash' => esc_html__( 'No budgets found in Trash', 'text-domain' ), 'name' => esc_html__( 'budgets', 'text-domain' ), 'singular_name' => esc_html__( 'budget', 'text-domain' ), ), 'public' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'show_in_rest' => true, 'menu_position' => 2, 'menu_icon' => 'dashicons-carrot', 'capability_type' => 'page', 'hierarchical' => true, 'has_archive' => true, 'query_var' => true, 'can_export' => true, 'rewrite_no_front' => false, 'supports' => array( 'revisions', ), 'rewrite' => true, ); register_post_type( 'budget', $args ); } add_action( 'init', 'your_prefix_register_post_type' );December 24, 2020 at 9:18 AM in reply to: ✅Email Notification for custom field update (change) #23721toni bird
ParticipantHi Long, many thanks for your reply, will give it a try.
cheers
toni bird
ParticipantMany thanks Long, saved my life. regards
-
AuthorPosts