Problem:
I don't understand how to use the render_view_template API function. If I use render_view_template(999999, $postid), where 999999 is the post ID of the template and $postid is the ID of the post to display within the template, is that correct?
Solution:
To render a view template for a post ID, first retrieve the post object using get_post($post_id), then use render_view_template($view_template_id, $post). Example:
$post_id = 123; // Replace with your actual post ID
$view_template_id = 456; // Replace with your actual view template ID
$post = get_post($post_id);
if ($post) {
echo render_view_template($view_template_id, $post);
} else {
echo "Post not found.";
}
Problem:
The customer is trying to use the Google Font "Manrope" in Toolset blocks, but it does not appear in the Typography Font List. They can see the font in other blocks (Kadence Adv Text), but not in Toolset, limiting their ability to change font weights within Toolset blocks.
Solution:
We checked with the development team and found that Toolset loads a predefined list of fonts from a specific JavaScript file (toolset-blocks/vendor/toolset/common-es/public/toolset-common-es.js). While this list includes many Google fonts, it does not include all of them. Currently, there is no built-in option to add custom fonts to this list.
The suggested workaround is to add a CSS class to the Toolset block and then use CSS to apply the "Manrope" font. Although this solution requires custom CSS, it allows the customer to use the desired font and make any necessary font-weight adjustments.
The customer wants users to edit their own custom and WordPress posts using a front-end Toolset form. However, when users click the edit post link, they are redirected to the edit page, which includes unnecessary theme elements like the sidebar, double images, and other Elementor theme components.
Solution:
Initially, I tested the issue by creating and editing posts but could not reproduce the problem. The customer added a "company profile" and posts to my account for testing.
I identified that the issue was related to the Elementor templates and provided a solution by following steps outlined in a similar case: https://toolset.com/forums/topic/how-to-edit-posts-with-a-front-end-form-if-using-elementor-templates/#post-2365825
How to Edit Posts with a Front-end Form if Using Elementor Templates
The customer followed the provided steps, which resolved the issue, removing the unwanted theme elements and displaying only the edit fields.