Navigation überspringen

[Gelöst] replace numbering with bullets in Repeating Field display

This support ticket is created vor 1 Jahr, 8 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Anthony vor 1 Jahr, 8 Monaten.

Author
Artikel
#2593643

I want to use a Repeating Field to list ingredients in CPT 'Recipes'. Currently, the list as displayed includes list items numbers. I do not want these numbers displayed; I really want to have bullets. In other words, I'd like the generated list to be un-ordered rather than ordered ...

#2593711

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hi there

How are you outputting the field?

#2593757

I'm using the Twenty Twenty-three theme with a Custom Post Type (Recipes) and a Custom Fields Group (Ingredients and Directions). Ingredients is a Single Line field set as 'repeating'. For output, I'm using the Repeating Field block. I'm struggling to have this in a custom template for the CPT, but that's a separate issue...

#2593771

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hmm. Settings for what separator to use seem to be missing.

I suggest you use shortcodes for the time being, specifically the wpv-for-each shortcode: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153482

You can output shortcodes either directly in a Shortcode block, within a Custom HTML block, or a Fields and Text block (switch to the HTML tab).

#2593817

This issue is resolved for now; I hope that in the future, the Repeating Field block will have settings for Ordered and Unordered (perhaps with customizable bullet type).
Thank you, Nigel!