Choice of Tags when Users Add a Listing

This topic contains 11 replies, has 6 voices, and was last updated by  64digital 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #11271

    Reena
    Free User
    Post count: 32

    Hi,

    Is there a way to have a tags appear as a choice when people add a listing?

    I want to be able to set the tags as “A”, “B”, “C” or “D” and have people select one or more of the tags when they enter a listing.

    I don’t want them to write in their own tags.

    Thanks,

    Reena

    #11325

    Simone
    Expired Member
    Post count: 3515

    Hmm…this is kind of tricky..
    What if you use a drop down menu as a custom field? (and get rid of the wordpress tags)?

    #11363

    Reena
    Free User
    Post count: 32

    I’ll try it. How do I remove Tags Keywords from the Add Listing page?

    Thanks,

    Reena

    #11369

    purpleedge
    Expired Member
    Post count: 539

    Have a look at this for an idea. There doesn’t appear to be a lot of support for limiting tags, which surprises me, I think it is a good idea.

    http://kahi.cz/wordpress/all-tags-in-a-drop-down-select/

    You’ll have to figure out how to implement it yourself, let us know if you have any luck!

    #11581

    Reena
    Free User
    Post count: 32

    @purpleedge Thanks for the info but I think that’s way over my head. I might just see if I can remove Tags from Add Listing page.

    Any idea how to do that?

    Cheers,

    Reena

    #11622

    Simone
    Expired Member
    Post count: 3515

    Hello Reena, to remove the tags field go to wp-content/plugins/geodirectory and open the file geodirectory_template_actions.php.

    you need to comment this block, from

    
    
       <div id="geodir_post_tags_row" class="geodir_form_row clearfix" >
                            <label><?php echo TAGKW_TEXT; ?></label>
                             <input name="post_tags" id="post_tags" value="<?php echo esc_attr(stripslashes($kw_tags)); ?>" type="text" class="geodir_textfield" maxlength="<?php echo TAGKW_TEXT_COUNT;?>"  />
                             <span class="geodir_message_note"><?php echo TAGKW_MSG;?></span>
                        </div>
    

    to

    
    
     <!--  <div id="geodir_post_tags_row" class="geodir_form_row clearfix" >
                            <label><?php echo TAGKW_TEXT; ?></label>
                             <input name="post_tags" id="post_tags" value="<?php echo esc_attr(stripslashes($kw_tags)); ?>" type="text" class="geodir_textfield" maxlength="<?php echo TAGKW_TEXT_COUNT;?>"  />
                             <span class="geodir_message_note"><?php echo TAGKW_MSG;?></span>
                        </div>-->
    
    

    (basically adding <! – – before and – – > after)

    Side effect:you need to do that each time when a GD update will be released.

    #11645

    purpleedge
    Expired Member
    Post count: 539

    Add this to you child style folder styles.css

    #geodir_post_tags_row.geodir_form_row.clearfix {
    display: none;
    }

    #12364

    czar
    Buyer
    Post count: 316

    Hi, for me it is a good idea to avoid creating too many tags and force user to use only these. Try to integrate the Simple Tags plugin. Ideal solution is that tags are assigned to categories chosen by user, to show different groups in the Add Listing page.

    I hope I have understood my bad english :-O

    #12568

    justmark
    Full Member
    Post count: 375

    Hmmm interesting. We are using tags in a very different way than most so we also need to limit the choice of tags to a preset bunch. Purpleedge’s suggestion for the drop down selector looks promising. Will have to get a developer to look at it.

    #12583

    czar
    Buyer
    Post count: 316

    I think, instead of dropdown better this solution:
    https://wordpress.org/plugins/user-tags/
    (obviously with non-editable field)

    #12587

    justmark
    Full Member
    Post count: 375

    That looks like a good option Czar.

    #47639

    64digital
    Expired Member
    Post count: 2

    Another way around hiding/removing the “Listing Keywords” from the form was to add some custom CSS.

    #geodir_post_tags_row {display:none;}

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket