Skip Navigation

[Resolved] New created post which is made through a post form, doesn’t show up on front-end

This thread is resolved. Here is a description of the problem and solution.

Problem:
New created post which is made through a post form, doesn't show up on front-end

Solution:
The user had applied the wrong filter to filter the view. I've changed the filter to filter the view by the post-relationship filter.

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/new-created-post-which-is-made-through-a-post-form-doesnt-show-up-on-front-end/#post-1105509

Relevant Documentation:

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by benv-2 6 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1103654

My situation is as following:
I have 3 CPT's called:
1) Engineer
2) Offer
3) Place

Engineer and Place have a m2m relationship.
The Offer CRED form has a post reference of Place.

I want my engineers to receive all the offers that they are connected to through place.
So, Engineer A has a relationship with Place A and Place B.
When a website visitor submits an Offer form and selects Place A or B, Engineer A has to see this offer.

This already works! But there is an issue:
When a website visitor submits the post, the Offer post is created on the back-end and has the status submitted.
Strange thing, on the front-end, the engineer doesn't see the post.
If i go into wp-admin, open the offer post en re-save it, the engineer sees the post!

Is there a way to fix this? I don't want to log in every time after a website visitor submits a form to resave it.

#1104464

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - this is strange. Can I have problem URL using which you are creating the new offer post and access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#1104595

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - after login to front-end using the access details you shared - once logged-in I see the following page:
=> hidden link

But where I can see the Form to submit the offer?

I have set the next reply to private which means only you and I have access to it.

#1105363

I've added simulation steps in the previous private message
I hope these steps help to simulate the issue.

#1105469

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I followed the step you mentioned and I stuck at the step

6) Log out the johndoe1 user and login under wp-admin with the credentials provided in the previous message.

Actually, I'm using different browsers, so in one browser I'm logged in as Admin and in another browser, I filled the form and logged in as johndoe1 user, but as soon as I submit the form and go to backend in another browser where I'm logged in as Admin and click on update button to update the post in backend which I submitted using form from frontend, I still do not see that post in the Filtered View: section.

Am I missing anything here?

#1105471

My mistake, when filling in the form, you have to choose 8085 within the gemeente-offerte field dropdown.

If you login as admin and update the post, it will show up under Filtered view: under the johndoe1 user.

#1105509

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I just changed the filter on your view as shown with the following image:
=> hidden link

I've added the post relationship filter and selected the relationship "Gemeente relationship" to filter by shortcode attribute.

Select posts in a Gemeente relationship that are related to the Post with ID set by the shortcode attribute placereference.
eg. [wpv-view name="view-name" placereference="123"]

And now I can see with your page - both view's displaying accurate information when you loggedin using user johndoe1 .
=> hidden link

#1106373

Hi Minesh,

This works great! I've tested the solution and now i instantly see the post appearing on the front-end.
Thank you very much for your help!

#1106374

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that solution I shared works for you and help you to resolve your issue.

would you mind to mark resolve this ticket 🙂

#1106389

Marked as resolved 🙂