Different Field When Editing
Viewing 2 Posts - 1 through 2 (of 2 total)
Author | Posts |
---|---|
September 1, 2013 at 11:46 pm 7729 | |
saku4388 | Hi, Could anyone help me to achieving this. When a user submit a post all the fields are ok but i just need when a user edit the post again there will be few more fields. Like i m running a Classified Site with wordpress Posts system so when a user submit a deal it is OK But i want that when his item is sold he can edit the listing and select a field which is ITEM SOLD and something like this. I am confused how to do this because all the fields are same which are submitting a post. Thanks 'n' Regards, Shabir Virk |
September 5, 2013 at 12:59 am 7804 | |
Tareq Hasan | You can’t do this as there isn’t any function like that. But one trick you could use: create two forms, one for post creation and another for editing. When submitting the post update the form ID with the edit form’s one using action hook. Another trick is to use action hook field in the form. There are parameters in the callback function and you’ll get the post ID in that function. So check the post ID parameter and if it exists (means it’s the edit area), show additional contents on the form. Hope I am clear. |
September 11, 2013 at 10:55 am 8010 | |
saku4388 | Hi, Could you please help me to achieve this? I just needed 2 extra field when editing. 1st Delete the Listing Thanks ‘n’ Regards, |
Viewing 2 Posts - 1 through 2 (of 2 total)