Home › Toolset Professional Support › [Resolved] content template / layouts
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
Tagged: Content Templates, Views plugin
Related documentation:
This topic contains 5 replies, has 3 voices.
Last updated by Maximiliano Mendieta 4 years, 4 months ago.
Assisted by: Minesh.
Tell us what you are trying to do?
I created a content template and asigned it to a custom post type. When I create a new post the content template doesn't apply automatically, insteed I have to manually add it in the wordpress editor.
Is there any documentation that you are following?
toolset docs
Is there a similar example that we can see?
no
What is the link to your site?
hidden link
Hello and thank you for contacting the Toolset support.
Can you please paste your Toolset Debug information in the Debug information field?
- https://toolset.com/faq/provide-debug-information-faster-support/
If you are using Toolset Layouts, make sure there is no layout assigned to this custom post type.
If you are using WPML, make sure that content templates have language information assigned. Go to WPML->Support->Troubleshooting and run the "Set Language Information" button after making a database backup.
https://wpml.org/documentation/support/wpml-troubleshooting-options/
If this does not help, we may need to take a copy of your website for some local debugging. Let us know if that's ok with you.
Hi Jamal, thanks for your reply. I'm using Layouts and Woocommerce Views. I tried to unassign the layout for the custom post type (Artistas in this case) but the content template still doesn't asign automatically. On the other hand, i have a layout and a content template asigned to the woocommerce products that works well. If you need to make a clone of the site, please, go ahead.
Here is the debug info:
{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/sd-1647212-h00006.ferozo.net","HomeURL":"http:\/\/sd-1647212-h00006.ferozo.net","Version":"5.4.2","PermalinkStructure":"\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, dd_layouts, wp-types-group, wp-types-user-group, wp-types-term-group, product, product_variation, shop_order, shop_order_refund, shop_coupon, view, view-template, avia_framework_post, portfolio, artista, artista-obra, wpa-helper, widget-area","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft, hidden"},"Server":{"jQueryVersion":"1.12.4-wp","PHPVersion":"7.2.32","MySQLVersion":"5.6.44","ServerSoftware":"Apache"},"PHP":{"MemoryLimit":"256M","UploadMax":"64M","PostMax":"64M","TimeLimit":"30","MaxInputVars":"1000"}},"plugins":{"active_plugins":{"facebook-for-woocommerce\/facebook-for-woocommerce.php":{"WC requires at least":"3.5.0","WC tested up to":"4.2.0","Woo":"","Name":"Facebook for WooCommerce","PluginURI":"https:\/\/github.com\/facebookincubator\/facebook-for-woocommerce\/","Version":"1.11.4","Author":"Facebook","AuthorURI":"https:\/\/www.facebook.com\/","TextDomain":"facebook-for-woocommerce","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"Facebook for WooCommerce","AuthorName":"Facebook"},"kliken-marketing-for-google\/kliken-marketing-for-google.php":{"WC requires at least":"3.0","WC tested up to":"4.0","Woo":"","Name":"Google Ads for WooCommerce","PluginURI":"https:\/\/woo.kliken.com\/","Version":"1.0.4","Author":"Kliken","AuthorURI":"http:\/\/kliken.com\/","TextDomain":"kliken-marketing-for-google","DomainPath":"\/languages","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"Google Ads for WooCommerce","AuthorName":"Kliken"},"layouts\/dd-layouts.php":{"WC requires at least":"","WC tested up to":"","Woo":"","Name":"Toolset Layouts","PluginURI":"https:\/\/toolset.com\/","Version":"2.6.5","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"layouts","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"Toolset Layouts","AuthorName":"OnTheGoSystems"},"mailchimp-for-woocommerce\/mailchimp-woocommerce.php":{"WC requires at least":"3.5","WC tested up to":"4.1","Woo":"","Name":"Mailchimp for WooCommerce","PluginURI":"https:\/\/mailchimp.com\/connect-your-store\/","Version":"2.4.1","Author":"Mailchimp","AuthorURI":"https:\/\/mailchimp.com","TextDomain":"mailchimp-for-woocommerce","DomainPath":"\/languages","Network":false,"RequiresWP":"4.9","RequiresPHP":"","Title":"Mailchimp for WooCommerce","AuthorName":"Mailchimp"},"types\/wpcf.php":{"WC requires at least":"","WC tested up to":"","Woo":"","Name":"Toolset Types","PluginURI":"https:\/\/toolset.com\/?utm_source=typesplugin\u0026utm_campaign=types\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"3.3.12","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"types","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"Toolset Types","AuthorName":"OnTheGoSystems"},"woocommerce-direct-checkout-pro\/woocommerce-direct-checkout-pro.php":{"WC requires at least":"","WC tested up to":"","Woo":"","Name":"WooCommerce Direct Checkout PRO","PluginURI":"","Version":"2.3.0","Author":"QuadLayers","AuthorURI":"https:\/\/www.quadlayers.com","TextDomain":"woocommerce-direct-checkout-pro","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"WooCommerce Direct Checkout PRO","AuthorName":"QuadLayers"},"woocommerce-direct-checkout\/woocommerce-direct-checkout.php":{"WC requires at least":"3.1.0","WC tested up to":"4.2.0","Woo":"","Name":"Direct Checkout for WooCommerce","PluginURI":"https:\/\/quadlayers.com\/documentation\/woocommerce-direct-checkout\/","Version":"2.3.9","Author":"QuadLayers","AuthorURI":"https:\/\/quadlayers.com","TextDomain":"woocommerce-direct-checkout","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"Direct Checkout for WooCommerce","AuthorName":"QuadLayers"},"woocommerce-views\/views-woocommerce.php":{"WC requires at least":"","WC tested up to":"3.8.0","Woo":"","Name":"Toolset WooCommerce Views","PluginURI":"https:\/\/toolset.com\/documentation\/views-inside\/woocommerce-views\/","Version":"2.8.1.1","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"woocommerce-views","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"Toolset WooCommerce Views","AuthorName":"OnTheGoSystems"},"woocommerce\/woocommerce.php":{"WC requires at least":"","WC tested up to":"","Woo":"","Name":"WooCommerce","PluginURI":"https:\/\/woocommerce.com\/","Version":"4.3.0","Author":"Automattic","AuthorURI":"https:\/\/woocommerce.com","TextDomain":"woocommerce","DomainPath":"\/i18n\/languages\/","Network":false,"RequiresWP":"5.2","RequiresPHP":"7.0","Title":"WooCommerce","AuthorName":"Automattic"},"wp-views\/wp-views.php":{"WC requires at least":"","WC tested up to":"","Woo":"","Name":"Toolset Views","PluginURI":"https:\/\/toolset.com\/?utm_source=viewsplugin\u0026utm_campaign=views\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"3.2.1","Author":"OnTheGoSystems","AuthorURI":"https:\/\/toolset.com","TextDomain":"wp-views","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"Toolset Views","AuthorName":"OnTheGoSystems"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"Enfold Child","ThemeURI":null,"Author":"\u003Ca href=\u0022http:\/\/www.kriesi.at\u0022\u003EKriesi\u003C\/a\u003E","AuthorURI":null,"Template":"enfold","Version":"1.0","TextDomain":null,"DomainPath":null},"extra-debug":{"types":{"add_resized_images_to_library":0,"images_remote":0,"images_remote_cache_time":"36","help_box":"by_types","hide_standard_custom_fields_metabox":"show","postmeta_unfiltered_html":"on","usermeta_unfiltered_html":"on"},"layouts":{"ddl_layouts_css_framework_options":"bootstrap-3","framework_setup":true},"views":{"views_template_loop_blog":0,"wpv_bootstrap_version":1,"wpv_custom_conditional_functions":["woo_product_on_sale","woo_product_in_stock","wpv_woo_single_products_rating_func","wpv_woo_list_attributes_func","wpv_woo_show_upsell_func","wpv_woo_products_rating_on_listing_func","woo_has_product_subcategory","woo_shop_display_is_categories","wpv_woo_product_belongs_to_this_order"],"wpv_custom_inner_shortcodes":[],"wpv_debug_mode":0,"wpv_debug_mode_type":"compact","wpv_map_plugin":0,"wpv_show_hidden_fields":"","wpv_saved_auto_detected_framework":"","wpv_codemirror_autoresize":"","wpv_enable_pagination_manage_history":0,"wpv_enable_parametric_search_manage_history":0,"support_spaces_in_meta_filters":0,"allow_views_wp_widgets_in_elementor":0,"default_user_editor":"basic","default_wpa_editor":"basic","manage_meta_transient_method":"cron","editing_experience":"classic","views_template_for_artista":81,"views_template_for_product":83,"wpv-theme-function":"render_view_template"},"installer":{"version":"2.4.3","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","bucket-url":"not assigned","subscription":""},"toolset":{"api-url":"https:\/\/api.toolset.com\/","bucket-url":"https:\/\/wptypes.s3.amazonaws.com\/toolset-bucket-99.json","subscription":{"key":"PNaLXPaUtm","data":{"subscription_type":5737,"expires":"2020-09-15","status":"1","notes":"prolonged from #72664"},"registered_by":1,"site_url":"http:\/\/sd-1647212-h00006.ferozo.net"}}},"instances":{"\/home\/cguser\/public_html\/wp-content\/plugins\/types\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/home\/cguser\/public_html\/wp-content\/plugins\/types\/vendor\/otgs\/installer\/installer.php","version":"2.4.3","args":{"plugins_install_tab":"1","repositories_include":["toolset","wpml"]},"delegated":true}}}}}
Jamal is on vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.
Can you please tell me from where you are creating the post - from backend or frontend and what content template is not assigned to your post.
Can you please share steps that I should follow on your install to see the issue.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Content Templates modify the content when called from the WordPress’ built-in the_content function. Some themes do not use the_content function, but define their own function. In this case, Content Templates are not applied to selected posts on the front-end.
I see you are using the Enfold theme and Enfold theme do not use the standard the_content() function to display the content for the content area of your theme.
Please check the following Doc:
=> https://toolset.com/documentation/programmer-reference/theme-support-for-content-templates/
The only way to fix your issue is you will require to create a single post PHP template to display the single post of your post type and use the the_content() function to display your content area.
=> https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
Thanks for your help Minesh, I'd uploaded a "single-discography.php" to the child theme and it shows the post correctly. Have a good day!