• Are there ways to add categories that contain commas?

    For example trying to add “Paris, France”.

    I have tried to enclose the categories in double-quotes and also single quotes.

    Blogged about same here – [ redundant link removed ]

    Thanks,

    Daniel

    • This topic was modified 3 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Requests and Feedback topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    If you would like to have commas between the categories, the tag should read:

    <?php the_category(',') ?>

    Ref: https://codex.www.ads-software.com/Separating_Categories#Simple_Separators

    • This reply was modified 3 years, 6 months ago by t-p.
    Thread Starter danieladeniji

    (@danieladeniji)

    t-p.

    Can you please refer to [ redundant link removed ]

    I am not talking about WordPress backend.

    This is purely frontend.

    I am trying to add new categories to a post via editing the post, itself.

    For example I am writing a post on a basketball player from France.

    And, I choose to create a new category, Thierry Daniel Henry.

    But, in this case, I want to use “lastname, firstname” and so chose to name the category, “Henry, Thierry”.

    Thanks,

    Daniel

    • This reply was modified 3 years, 6 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add categories that have commas such as city names. ie. Paris Francis’ is closed to new replies.