Forums

Custom Field [Required] & Custom Post Type [Auto Taxonomy Choosing] (3 posts)

  1. ross104
    Member
    Posted 2 years ago #

    Hello!
    Two questions:
    1. How to make Custom Field Required to fill in?
    2. If I have taxonomy called - Categories [Films, Games, Albums, ETC]
    So how is it possible to make Custom Post type to have default Taxonomy Item? For example - if I am adding new Film - WordPress selects Category item Films in automated way.

  2. Tara
    Member
    Posted 2 years ago #

    1.
    review this WP-Snippet

    2.

    not sure.

  3. ross104
    Member
    Posted 2 years ago #

    1.
    review this WP-Snippet

    Increase default number of custom fields
    WordPress has a default number of 30 custom fields. In the following example we have increased the limit to 200.
    Simply paste the following into your functions.php-file and away you go!

    Its for limit increasing. And I need to make custom field required to fill in when user is adding a publication, or when publication is being saved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.