Free Directory, Listing & Classifieds WordPress Plugin Support Extensions Tags Can I define the Tags and “lock” them?

Can I define the Tags and “lock” them?

  • Author
    Posts
  • ThomasB

    Hi Ihor,

    Is it possible to add tags that Sellers can chose between when they make their services instead if them being allowed to name any tag? I want to add around 20 different tags they can use, and preferably restrict that they can make their own tags. This would make the search more efficient, as I better can control the search process, i.e. which tags users can apply when they make a search.

    Also, can I add text to the Tag bar, i.e. an “explainer”? So that people know what “tags” actually means.

    Thanks!

    ThomasB

    And… The reason why I don’t just add these Tags as attributes and make them as a list, is that Tags seem to be more searchable, and that Tags are shown more nicely in the service view 🙂

    ihordeveloper

    If you don’t use the tags block to display a few tags on the front page, you can simply disable the Tags extension and add a custom Select attribute in Listings/Attributes section (check the “Allow multiple selection” option for it). It’ll work exactly like tags and will not allow adding new tags.

    ThomasB

    Thanks, that was also what I thought would be the alternative. But another nice thing about the Tags is the way that they are showed on the services/listings, i.e. in squares and that they are clickable 🙂 Can I add to the feature requests that Tags can be “locked” and controlled by the siteowner?

    ihordeveloper

    If you want to keep this extension you can try using this code snippet just to disable user input:

    add_filter(
    	'hivepress/v1/fields/tags',
    	function( $args ) {
    		unset( $args['attributes']['data-input'] );
    
    		return $args;
    	}
    );
    ThomasB

    Just what I am looking for, thanks 🙂 You can close this topic!

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

The topic ‘Can I define the Tags and “lock” them?’ is closed to new replies.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.