Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1273302

    Hi guys,

    I still can’t get a CPT (created with Toolset) to work in a single template with Enfold. In other words, the custom content is not visible at the frontend of the website.

    I have read several threads and understand that several users are struggling with this. Do I understand correctly that the problem is mainly the (inconsistent) use of avia_markup_helper()? ( https://kriesi.at/support/topic/toolset-enfold-2/#post-1103880 )

    Is there already a solution or workaround to make the custom fields visible at the frontend? Or is the solution to choose another theme than Enfold? Then unfortunately I would have to rebuild the customer’s entire website…

    I hope there is a work-around by now! Have a nice day!
    Ita

    #1274121

    Not to be pushy, but how long does it normally take for a response to a ticket? I would like to hear the solution so that I can continue with my project.

    #1274149

    Chiming in because we’re having the same problem, so I want to find the solution too. Let’s get this moving this year Enfold. Otherwise, my crew is moving to Oxygen. I’ve even found forums where Toolset has reached out and offered solutions on your end. But you never replied.

    Guys, let’s get a solution.

    Please reply to this thread.

    #1275124

    Hi,
    Sorry for the very late reply @ifranl, I don’t use Toolset myself but I recognize this issue and it seems to be related to the use of the_content() and get_the_content() and how Toolset & Enfold use them.
    The issue identified through collaboration with Toolset:

    To allow users design their content with Toolset Views, The Enfold Theme would have to provide a single function that gets the content, passes it over the the_content filter, and returns it or prints it on screen.
    Currently, all this things are happening directly inside the WordPress loop, not thru a function, which means that Enfold does not have a content “provider” as required by Toolset Views to detect and whitelist the source of content that a Content Template should replace.

    For v4.6 the filter avf_the_content was added:

    The filter itself would work, I am able to for example pass the_content() to it, which will allow people to design it in Content Templates.
    So yes, people could work with this by adding a custom code like the below to the theme when working with Toolset:

    function example_callback() {
    return the_content();
    }
    add_filter( 'avf_the_content', 'example_callback' );

    Apparently Toolset at one time had posted a “child theme” for their Enfold users on their support fourm with the correct filter ready to use. I didn’t find it, but I’m not a member, please check yourself.

    Best regards,
    Mike

    #1275836

    Hi Mike,

    Thanks for your reply! I looked into it on Monday but didn’t get to it right away. Last few days I was suddenly busy with a rush job; I’ll dive in further asap. Have a very nice day!

    • This reply was modified 3 years, 3 months ago by ifranl.
    #1276054

    Hi,
    Very good, we will leave this open to hear back from you when you get a chance to check this.

    Best regards and have a great day,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.