I have form that is set to generate Posts from entries. One of the fields links Taxonomy “Category” to a field “Abstract Status” (ID 115). This works fine.
However, I am also generating a Custom Display to list the entries (in summary form) as well as link to individual entries as posts. I want users to be able to update this field (i.e. the post Category) via this Custom Display. I have tried using variations of the following shortcode:
[frm-entry-update-field id=[id] field_id=115 value=”Abstract (Accepted)”]
[frm-entry-update-field id=[id] field_id=115 value=”13″], etc.
Nothing appears where the shortcode output should be.
The two relevant Categories have ID 13 and 15 respectively, and I have tried using both. I understand that if the value I’m trying to set is the same as the current value, nothing will display, but even if I set a different ID (or text string? I’m not sure which I’m meant to use?) nothing displays.
Any suggestions? Am I trying to do something impossible?




April 10, 2012 at 11:10 am
What shortcode are you using? All I'm seeing is field_id=115 value="13"]
April 11, 2012 at 12:32 am
Hi , sorry, not sure why it came out like that.
I am using [ frm-entry-update-field id=[id] field_id=115 value="Abstract (Accepted)" ]
April 11, 2012 at 11:19 am
This worked for me using [ frm-entry-update-field id=[id] field_id=115 value="13"], but I think it depends whether your categories are hierarchical or not. The category ID worked with my hierarchical categories. Also, what field type is field 115?
April 12, 2012 at 12:55 am
Hi Stephanie,
The categories aren't hierarchical at all. The field type is a Dropdown.
April 12, 2012 at 7:55 pm
This works for me with a non-hierarchical category, although it shows whether the category is already set or not.
[frm-entry-update-field id=[id] field_id=115 value="Abstract"]
Do you have a category without extra characters like ( ?
April 13, 2012 at 1:05 am
Do you think the "(" in the category name are messing this up?
Also, I'm a little confused. Is it correct to use the category ID, or the name? Or both?
April 13, 2012 at 11:43 am
For hierarchical categories, WP requires ids. Non-hierarchical categories require the category name. When I used the ID with non-hierarchical categories, it created a new category called "109". It also worked for me with parenthesis.
So, [ frm-entry-update-field id=[id] field_id=115 value="Abstract (Accepted)" ] should work. What version are you using? If that doesn't work, can you attach a screenshot of the field options for field 115, and the "create posts" tab for that form?
April 16, 2012 at 1:50 am
Everything you are saying makes perfect sense. I just can't get the thing to even display Surely I should be seeing a link labelled "Update" where the shortcode is? It's as if the shortcode is just ignored all together.
In fact, I just tested with a totally different field (a simple text field), and the same thing happened. Nothing is displayed where the shortcode is.
I am using Formidable Version 1.06.03, with WP 3.3.1
I am attaching a screenshot of my Custom Display where the shortcodes are used. You will see I currently have two places where the post category (ID 115) is supposed to be updated, and one where I tried to change the "Name" (i.e. a simple text field) as well.
I am also attaching a screenshot of the field options, although I doubt the problem is there.
Attachments:


April 16, 2012 at 1:59 am
Oh, and here is the screenshot of the Create Post tab.
Attachment:

April 16, 2012 at 4:40 am
I just found the source of the problem.
I had disabled the option for users (in this case, administrators only) to edit entries after posting. I didn't realise that this applied to frm-entry-update-field shortcodes as well! So those shortcodes were simply being hidden.
By the way, the updating of categories only worked when I used IDs, not category names.
Thank you so much for your patience and efforts!
April 16, 2012 at 8:14 am
Oh... Didn't realize you weren't seeing the link at all. Sorry.
Your category must be hierarchal then. If you see the option to select a category parent, then it is hierarchal.
Topic closed.