Updating post category through Custom Display

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?

What shortcode are you using? All I'm seeing is field_id=115 value="13"]

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)" ]

 

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?

Hi Stephanie,

 

The categories aren't hierarchical at all. The field type is a Dropdown.

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 ( ?

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?

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?

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:
dynamic-contentid115

Oh, and here is the screenshot of the Create Post tab.

 


Attachment:
create-post

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!

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.