Problem:
Which filter will prevail if trying to set a Layout or Content Template programmatically?
Solution:
The get_layout_id_for_render filter is a Layouts filter.
The wpv_filter_force_template filter is a Views filter.
You can use the get_layout_id_for_render filter to modify which Template Layout is used, or the wpv_filter_force_template filter to modify which Content Template is used, but you cannot use the filters to modify whether a Template Layout or Content Template is used, which will be determined by what you have set for the post type, or more specifically for the individual post.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_template
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 2 replies, has 2 voices.
Last updated by 6 years, 10 months ago.
Assisted by: Nigel.