Can I add a new pod entry from within a post?

0

Howdy!

I've created a pod structure that contains additional fields for a custom post type I've created...

Is it possible to add a new pod entry on the post page that gets added at the same time when a post gets saved?

I don't really feel like having to go to a new page to add a new entry every time I create a post.

I originally was using custom fields which looked ugly.. Is going back to custom fields my best option?

Thanks everyone!

M

asked Sep 9 '10 at 1:45

reado

18

add comment
enter at least 15 characters

2 Answers

0

Currently there is no way to do this. Pods 2.0 will be exactly what you are talking about - check it out here:

http://podscms.org/pods-2-0/

edit: didnt realize it was you, Matt. The way around this would be to create the post fields within the pod and use post save helpers to update the post. I'm sure someone else will have something to say about this.

answered Sep 9 '10 at 2:42

wesbos

56

edited Sep 9 '10 at 2:44

add comment
enter at least 15 characters
0

There are hooks in wordpress (like save_ post and wp_ insert_ post) that run just after post is added, i guess that works for custom post types too; this is more safe and easy way. If you need some data, different from the post data (i guess it's your case) there is complicated way: you can make (by a new plugin) additional field box on post page (add_ meta_ box, if i do remember right) and attach jQuery script that will catch publish post/update post button clicks, send data from additional fields through AJAX to pods, and proceed with saving post only on success. That's pretty huge, but it will work if you have no options.

answered Sep 9 '10 at 7:56

Fike

208

add comment
enter at least 15 characters