FEPS templates don’t work?
-
Hi there, I’m using the excellent FEPS add-on, and the docs say you can pass a template argument to the [wpp_feps_form] shortcode. However, when I create feps_my_layout.php in my theme folder, and pass ‘my_layout’ from the shortcode, just as the instructions say, it fails to load the template.
I can pass templates to [property-overview] in the same way and they load just fine. Here’s what I did to get FEPS templates working:
in wp-property-feps/lib/class-wpp-feps.php, on line 2993, you’ll see:
$content_template_found = WPP_F::get_template_part( array( "feps-submit-template" ), array( ud_get_wpp_feps()->path( 'static/views', 'dir' ) ) );
You’re going to want to add a line so it looks like this:
$content_template_found = WPP_F::get_template_part( array( "feps-". $args['template'], "feps-submit-template" ), array( ud_get_wpp_feps()->path( 'static/views', 'dir' ) ) );
Then, on line 2789. you’ll see
$args = shortcode_atts( array(
. Add a line for templates, like so:'template' => '',
After adding these two lines, FEPS form templates started working for me.
- The topic ‘FEPS templates don’t work?’ is closed to new replies.