jeudi 17 mars 2016

I Want to customize wp adverts wordpress plugin form. Please help me

I used WP adverts wordpress plugin. In admin side have add new classified form. I want to customize that form. But i didn't know how to customize form fields and add some new fields ?enter image description here

<style type="text/css">
    .adverts-data-table th.adverts-data-header {
        font-size:1.4em; 
        font-weight: normal; 
        font-variant: small-caps; 
        padding: 20px 10px 0px 0px
    }

    .adverts-data-table input[type="text"],
    .adverts-data-table textarea {
        width: 99%;
    }
</style>

<table class="form-table adverts-data-table">
<tbody>
    <?php foreach($form->get_fields( array( "exclude"=>$exclude ) ) as $field): ?>
        <tr class="<?php if( isset($field["error"]) && !empty($field["error"])): ?>form-invalid<?php endif; ?>">
        <?php if($field["type"] == "adverts_field_header"): ?>
            <th scope="row" colspan="2" class="adverts-data-header">
                <?php esc_html_e($field["label"]) ?>
            </th>
        <?php else: ?>
            <th scope="row">
                <label for="<?php esc_attr_e($field["name"]) ?>"><?php esc_html_e($field["label"]) ?></label>
            </th>
            <td>
                <?php call_user_func( adverts_field_get_renderer($field), $field) ?>

            </td>
        <?php endif; ?>
        </tr>
    <?php endforeach; ?>            
    </tbody>
</table>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire