• WordPress backend (post-editor-panel) offers such an excellent tagging tool wherein we can choose from already existing tags. Is it possible to bring this functionality to the frontend without fancy ajax. Just with some good ol php. All I need is just a list of tags to choose from in the frontend and save it.

    There is a code which I am trying but is far from perfect and just returns empty radio-buttons. Can somebody please suggest a correction. There is nothing on google on this topic. Thanks.

    <?php
    $taxonomies = array(
        'wissen_tags'
    );
    $args = array(
        'orderby' => 'name',
        'order' => 'ASC',
        'hide_empty' => false
    );
    
    $terms = get_terms($taxonomies,$args);
    
    if (count($terms) > 0):
    $i = 0;
        foreach ($terms as $term): ?>
            <div class="wissen_tag_list">
                <input type="radio" value="<?php echo $term->term_id; ?>" name="wissen_tags" class="wissen_tag_list_ckb" <?php if ( $i == 0 ) { ?>checked<?php } ?>>
                <label class="wissen_tag_list_ckbl">
                    <?php echo $term->name; ?>
                </label>
            </div>
    <?php
        $i++; endforeach;
    endif; ?>
  • The topic ‘A little help with frontend tagging.’ is closed to new replies.