[Gelöst] using custom fields with Divi builder .. single view post
This support ticket is created vor 1 Jahr, 11 Monate. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have three data fields:
A file: linked-file
A single line: linked-file-name
A single line: linked-notes
And it no longer seems to work for the URL and Notes fields. It does output the name field.
. . . .
MY PREFERRED WAY:
I'd prefer to do this with the Blocks Builder so that I can conditionally hide the content if there is no file linked.
I've used a conditional 'if field' to wrap around showing a button, title with a link to a document and the notes fields. All of which are custom field data, same as written above. The logic is: If the linked-file is NOT empy show the following: URL active button, URL active name and static notes text.
Within the view I have set the View to display posts, and then Filter by post relationship or repeatable fields group owner, where the content comes from The post where this View is shown.
However as you can see 'no items found' yet the divi version shows the results clearly.
Within the view I have set the View to display posts, and then Filter by post relationship or repeatable fields group owner, where the content comes from The post where this View is shown.
However as you can see 'no items found' yet the divi version shows the results clearly.
Based on what I see from your screenshot your Post is not in a relationship created with Toolset because there is a notice on the relationship filter.
Was a relationship setup between your Posts and another post type ? Can you send me a screenshot of your Toolset -> Post Relationship screen?
Finally if you remove this Relationship filter does the view start showing your posts?
Hi Shane .. I've removed the relationship filter and now nothing shows up at all. I hadn't created a relationship I just wanted the view to pull in content from the current post where there view is shown.
Can you send me a direct link to edit the template for this posts?
I suspect the issue is that divi builder isn't able to process the nested shortcode so we would need to have a look at filtering the view through a hook.
Please send me the link for the edit template page for the template that is being used on your posts.
Replace 5635 with the ID of your view. Unfortunately i'm not able to add this to your functions.php file as it seems I require FTP access to make this change.
Please try this code and let me know if it works.
Thanks,
Shane
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.