Hi Christian,
the summarize is not correct because:
1. I have a Content Template applied to Profile CPT posts. YES
2. Inside that Content Template some modules are managed with View.
3. Inside the View is the same Content Template from #1. YES
Now I'm trying to fix following your guide:
1. Edit the modello-di-contenuto-perprofili Content Template and remove the View (what do you mean with "Include other Profile information here"?)
2. Disconnect the modello-di-contenuto-perprofili Content Template from all Profile posts
3. Create a new Content Template and insert the View
4. Assign the new Content Template to all Profile posts
We don't understand each other. Please provide login credentials in the private reply fields here so I can figure out what is going on here.
Please see the infinite loop in this screenshot. This will render the contents of the Page:
{!{wpv-post-body view_template="None"}!}
The contents of the Page includes the View.
The View includes the Divi template.
The Divi template includes the wpv-post-body shortcode.
The wpv-post-body shortcode renders the contents of the Page.
The contents of the Page includes the View.
Repeat ad infinitum - it's an infinite loop.
To fix it, you must remove the wpv-post-body shortcode from the "Testo" block of your Divi template.
Do you think that is good to create a Text Custom field to manage the description text content inside the Profile CPT post instead using the default wordpress content form?
It might be okay, but it depends on many factors. Custom fields are not automatically indexed for search. They are also translated differently than post content. If you have specific questions about that, feel free to open a separate ticket.
Ok, but I think there are not other solution to have a description into Custom Template without generate loop in View...
So, I have changed the wpv-post-body with the "descriviti" custom field. Now I don't have the loop error message, but the fields about the current user Profili CPT Post are not displayed.
So, I need to display the current user Profili CPT post in a page (My Profile) to add the page into the menu.
What is wrong in the code?
Inside the Divi template, you can add the current post ID to each shortcode, like this:
{!{wpv-post-author format="meta" meta="nickname" id="{!{wpv-post-id}!}"}!}
...
{!{wpv-post-taxonomy type="occhi" format="name" id="{!{wpv-post-id}!}"}!}
Now the shortcodes refer to the current Profili post in the loop of the View.
Hi Christian,
thanks for more shortcode it work fine and now the page looks like Profile CPT post.
But it don't work to display the "Sono di - Mio Profilo" View that it should display the current user position. I have duplicated all relative Content Template and add to the title name the " - Mio Profilo" string, and added to the shortcodes the "wpv-post-id", but nothing.
Other issue is in the gallery, I don't know why near the images are displayed "']" for every single image.
Now I'm trying to adeguate the shortcode to display the age and the category lists.
But it don't work to display the "Sono di - Mio Profilo" View that it should display the current user position. I have duplicated all relative Content Template and add to the title name the " - Mio Profilo" string, and added to the shortcodes the "wpv-post-id", but nothing.
The Sono di - Mio Profilo View had a post relationship filter that was set by the post where the View is shown. See the attached screenshot. I already changed it for you, so now it responds to a shortcode attribute "wpvrelatedto". In the Divi template, I replaced your View shortcode with this one instead:
<div>{!{wpv-view name='sono-di-mio-profilo' wpvrelatedto='{!{wpv-post-id}!}'}!}</div>
My issue is resolved now. Thank you!