04/25/2018 at 9:35 am
#460159
Keymaster
@ Erika
RE: the city has disappeared and i didn’t do anything. When i go to edit entry it shows as a category but doesn’t show the value (see attached screenshot).
I took a look at the code for the snippet you attached as a PDF a few replies ago…
This line:
'type' => 'city', // This is the field type being added.
Should be:
'type' => 'text', // This is the field type being added.
That is likely the reason it does not have a text input for you to type the name.
RE: if i want to add order by city would the shortcode be:
Either of those should work fine. I personally use quotes when adding shortcode options. Od, you should use the category shortcode option not the catgory_in shortcode option.
[connections category=12 image_width=200 order_by='city']
