find entry key for use in loop?

I’ve got a form set up to create posts. I’ve also got a page with multiple loops that lists all the posts in separate lists based on some custom fields entries that are gathered through the form.

I want to  enable visitors to see their entries in the page with the list of posts and click on a link that lets them edit any post directly in the form they used to create the post.

In your Knowledge Base page Insert a list of entries  you suggest some php alternatives.

I could put something like this into the loop:  <a href=”/page-with-form?action=edit&entry=[key]“>entry title here</a>

but how can I get the entry=[key] for each post to insert into the edit link above?

Thanks for your help!

The php alternative mentioned is an alternate way of inserting the shortcode. The link with action=edit&entry=[key] is intended for use in a custom display, which you can also insert on your page with php.

Thanks for responding, Stephanie. But is there not way to query for a post's 'entry' key from inside the loop?

Are you saying you're on a single post page for a post created by Formidable?

No, I've got a highly specialized achive-customposttype.php page that sorts and lists all the posts (which are originally created with a Formidable form). The only piece of info I need to get for each post that loops on the page spits out is the entry key.

Your following short code...  [frm-entry-links id=x] ...spits out a list of links to edit posts. Each link contains the entry key, (underlined below) so there must be a way to get the data.  

http://ux.mysite.com/?contribute=improvement-ticket&amp;entry=lewy07&frm_action=edit

Thanks!

The question is what entries are you trying to get? Here's the database schema:
http://formidablepro.com/knowledgebase/database-schema/

I guess it would be entry_id

Of what? What entries are you trying to get?

Thanks for your patience, Stephanie. Sorry if I'm less than clear.

I have a form that spits out posts of a custom post type called 'reviews'. One of the fields in my form gives each of the review posts a field value of 'good', 'neutral' or 'bad'.

Then I have a special page with three loops with three separate queries. One gets all the reviews that are good, one lists all the review that are neutral and one lists all the reviews that are bad.

I want to be able to provide a link that brings up each post in the form for editing. To do this, I need to be able to get the data that identifies the entry that needs to be loaded into the form for editing. I think that piece of data is called the entry_ID. You can see an edample of the data I need to get in the link below, which successfully load one of my entries into my form for editng.

http://mysite.com/?contribute=improvement-ticket&entry=j0cyej&frm_action=edit

That little ID code underlined in red is what I'm trying to get from within a wordpress loop.

 

 

 

 

entry=j0cyej&frm_action=edit

If you do not want to create a custom display to do this, you will need to hire a developer to help you write the custom code to do so. I don't see why a custom display wouldn't work. for your needs.

Can custom displays be made to just list the posts that meet a specific set of meta-data requirements like show just the posts that have the setting 'good'?

Yes. See #10.
http://formidablepro.com/knowledgebase/display-your-form-data/

Topic closed.