Choice of Tags when Users Add a Listing
This topic contains 11 replies, has 6 voices, and was last updated by 64digital 10 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 7, 2014 at 6:38 am #11271
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
August 7, 2014 at 3:48 pm #11325Hmm…this is kind of tricky..
What if you use a drop down menu as a custom field? (and get rid of the wordpress tags)?August 8, 2014 at 12:22 am #11363I’ll try it. How do I remove Tags Keywords from the Add Listing page?
Thanks,
Reena
August 8, 2014 at 1:03 am #11369Have 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!
August 11, 2014 at 3:09 am #11581@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
August 11, 2014 at 11:42 am #11622Hello 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.
August 11, 2014 at 1:19 pm #11645Add this to you child style folder styles.css
#geodir_post_tags_row.geodir_form_row.clearfix {
display: none;
}August 17, 2014 at 6:02 pm #12364Hi, 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
August 19, 2014 at 1:29 pm #12568Hmmm 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.
August 19, 2014 at 3:43 pm #12583I think, instead of dropdown better this solution:
https://wordpress.org/plugins/user-tags/
(obviously with non-editable field)August 19, 2014 at 4:42 pm #12587That looks like a good option Czar.
July 31, 2015 at 12:11 pm #47639Another way around hiding/removing the “Listing Keywords” from the form was to add some custom CSS.
#geodir_post_tags_row {display:none;}
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket