Adding taxonomy with “,”

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

This topic has 3 replies, 2 voices, and was last updated 2 years, 4 months ago by Szabi – CodeRevolution.

Viewing 3 reply threads
  • Author
    Posts
    • #5653


      Ericmuc
      Participant
      Post count: 8

      Careeromatic

      Hi,

      I want to add following for example:
      job_listing_category => Biologists, botanists, zoologists and related professionals;

      By this three categories are added:

      Biologists
      botanists
      zoologists and related professionals

      If I change it to:
      job_listing_category => ‘Biologists, botanists, zoologists and related professionals’;

      following is added:
      ‘Biologists
      botanists
      zoologists and related professionals’

      I need to add the whole Biologists, botanists, zoologists and related professionals, so what can I do regarding the “,” in the category name, so that it is imported as one string?

      Thanks a lot, best regards

      Eric

    • #5655


      Szabi – CodeRevolution
      Keymaster
      Post count: 4627

      Hello,

      First of all, thank you for your purchase.

      In case the taxonomy you are creating is hierarchical, the solution is simple, you must use the IDs of taxonomies in the ‘Post Custom Taxonomies’ settings field, like:

      job_listing_category => 12345

      Where you must replace 12345 with the correct ID of the taxonomy you wish to use (which was manually created by you, and has the comma added in its name, something like: Biologists, botanists, zoologists and related professionals

      Please check this link for info on how to find a taxonomy’s ID in WordPress: https://facetwp.com/how-to-find-a-wordpress-terms-id/

      Let me know if this info helped.

      Regards, Szabi – CodeRevolution.

    • #5656


      Ericmuc
      Participant
      Post count: 8

      Hi,

      Thanks for the quick answer! And it works!

      All the best

      Eric

    • #5657


      Szabi – CodeRevolution
      Keymaster
      Post count: 4627

      I am glad to help! 🙂

      Cheers!

Viewing 3 reply threads

The topic ‘Adding taxonomy with “,”’ is closed to new replies.