Giter Site home page Giter Site logo

Comments (13)

jimtrue avatar jimtrue commented on May 31, 2024

@korgonthurus Did you set the post title to map into the WP Object field post title in your Pods Processor tab? Yes, I would not recommend doing both plugins as they have conflicting purposes.

So without it installed or activated, and clearing cache, you can't get Post Title or the Status to save as anything other than Draft?

from pods-gravity-forms.

korgonthurus avatar korgonthurus commented on May 31, 2024

@jimtrue Exactly!

If I map the Post Title field in the appropriate Post Title field in the PODS feed, I'm unable to change the post status. It always stays as draft.

The problem goes deeper, since I've tried many different methods to make this work. It is crucial for pods to "fetch" the post status from the Post Title GF field, because it's the only way any related code would work.

For example I have tried making a function as instructed in the GF documentation, which will enable me to set the post status from a separate field, but this is not doable, since it only works if post fields are used in the form. (also tried to "use" one inside just for testing, and was still unable to make it work). (http://gravitywiz.com/set-post-status-by-field-value/)

Also, I don't know if this should be listed as a separate issue, here is another bug:

I'm unable to get the custom taxonomy's values by using the pods feed.

It does work with simple relationship and advanced relationship fields, correctly getting all the values, but not for taxonomies. This happens in the dropdown field, where we can either add our own options to the selections, or fetch them through the associated pod feed.

The taxonomy is correctly mapped in the feed, but I get the default choices of gravity forms, instead of the available terms of the custom taxonomy (whereas when using relationship fields I'm able to get all the correct values).

from pods-gravity-forms.

DrSammyLee avatar DrSammyLee commented on May 31, 2024

@korgonthurus Using the GF Post Title field in combination with Pods to create posts does NOT work correctly. Rather than using a GF Post Title field, use a GF Single Line Text field and map that to WP Object field post title in Pods processor tab.

I can't remember where I read it, either in the Pods documentation or forum, but it's best to avoid using any of the GF Post fields. Use standard fields mapped to post fields in the Pods processor tab, otherwise you end up with two incomplete posts, one under Posts and the other under your CPT.

from pods-gravity-forms.

korgonthurus avatar korgonthurus commented on May 31, 2024

@DrSammyLee I totally agree, and this is what I do :) I dont use any GF post fields, Im setting up all the fields I need, then use the pods feed to map them. Everything works great, I create dynamic titles, and auto-complete fields. The problem is a) there is not even a single way at the moment, that you are able to pass "post_status" information to the pods cpt. That means all the submissions go to draft mode, and there's no way to make them auto-publish.

And b) there is this taxonomy issue, where you are unable to set a custom taxonomy pods feed to work correctly, and actually feed the taxonomy list to the field. It will map, if you put a correct value, it will map to the cpt. But this means either setting up manually taxonomies with hundreds of terms, or using the GF + CPT plugin, which will feed the terms correctly.

from pods-gravity-forms.

jimtrue avatar jimtrue commented on May 31, 2024

@korgonthorus Did you create a separate issue for the taxonomy? So these can each be patched properly, it really must be one issue per problem

from pods-gravity-forms.

korgonthurus avatar korgonthurus commented on May 31, 2024

@jimtrue That is true, I am sorry, will do that now!

from pods-gravity-forms.

korgonthurus avatar korgonthurus commented on May 31, 2024

On further notes, if more people are facing the same problem, you can still choose the default post status from the PODS' advanced options. It's "hardcoded" though, you can't actually change it through GF, but I guess will fit most cases!

from pods-gravity-forms.

jimtrue avatar jimtrue commented on May 31, 2024

Well, since the Post Creation is handled by Pods, there's no reason the default post status from the Pods configuration isn't being used for Pods post creation.

from pods-gravity-forms.

jimtrue avatar jimtrue commented on May 31, 2024

Okay on a fresh install of the Gravity Forms plugin, I tested Post Title using both a standard text field and mapping it to the Post Title field and also using a Post Object Post Title field. Both worked flawlessly.

On the Draft/Published status: I created a new pod with Post Status of 'Published' in Advanced Options. My entries from the GF feed always go to published, no 'drafts', so not sure if this got fixed in one of the other patches this week or not. @korgonthurus can you verify on your end?

from pods-gravity-forms.

korgonthurus avatar korgonthurus commented on May 31, 2024

@jimtrue Exactly! That's why I've written the last message, to clarify that the post status inside the PODS's options is working as expected. Post titles as well work flawlessly.

I have done a lot of testing between GF & Pods, and really the only issues was this, and the other taxonomy one.

The case here is that there is no way to actually change the post status through a form. It's a minor issue of course, there's limited use cases where that would be a problem (and I actually tried sorting that through extra functions, as instructed in the linked guide).

I believe this best classifies as a minor bug, and not something that requires attention in the near future.

from pods-gravity-forms.

jimtrue avatar jimtrue commented on May 31, 2024

So the real issue is that you can't set Post Status from within the GF field and have it be recognized and passed to Pods, right?

from pods-gravity-forms.

korgonthurus avatar korgonthurus commented on May 31, 2024

@jimtrue Exactly! Tried numerous ways but wasn't able to do it.

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on May 31, 2024

Fixed as of the changes tonight :)

from pods-gravity-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.