Skip Navigation

[Gelöst] display CRED new post form inside view wpv-items-not-found not working

This support ticket is created vor 7 Jahren, 2 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von davidZ-4 vor 7 Jahren, 2 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#573875
view filter.JPG

I am trying to: display CRED new post form inside view wpv-items-not-found when no results are found

Link to a page where the issue can be seen: versteckter Link

I expected to see: the new post form as the vie have no results

Instead, I got: Just a message that there are no results found

I created a view that allow users to see one post they created for the post type.
in this view I would like to show the create new post form if the user never created the post before. to do that i want to leverage the [wpv-no-items-found] short code but for some reason this is not working.

if the user already created the custom post it will display with the edit post form (this part is working)

The view filter is set to show only one post the user is the author of (see enclosed screenshot)
I use the following short code in the view:

	[wpv-no-items-found]
	[cred_form form='calculate-net-worth' form_name='Calculate Net Worth'] // this is not working the new post form not display
	
//the lines below works just fine
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
You have not submited your Net Worth analysis.
<a href="<em><u>versteckter Link</u></em>">Start your Net Worth Anlysis now!</a>
	[/wpv-no-items-found]

Please advise,
thanks,

David

#573961

Dear David,

I can not duplicate same problem, please check these in your website:
1) Since you are using Access plugin, you will need to make sure the users can access to the CRED form "Calculate Net Worth", more help:
https://toolset.com/documentation/user-guides/access-control-for-cred-forms/

2) In case there are other compatibility problem in your website, please deactivate other plugins and switch to wordpress default theme, and test again

3) If the problem still persists, please provide a database dump file(ZIP file) of your website in below "private detail box", I need to duplicate same problem and debug it in my localhost, thanks